5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2009, MinGW Project
9 # Makefile template for mingw-get
12 # This is free software. Permission is granted to copy, modify and
13 # redistribute this software, under the provisions of the GNU General
14 # Public License, Version 3, (or, at your option, any later version),
15 # as published by the Free Software Foundation; see the file COPYING
16 # for licensing details.
18 # Note, in particular, that this software is provided "as is", in the
19 # hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
20 # even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
21 # PARTICULAR PURPOSE. Under no circumstances will the author, or the
22 # MinGW Project, accept liability for any damages, however caused,
23 # arising from the use of this software.
27 VPATH = ${srcdir}/src ${srcdir}/src/pkginfo ${srcdir}/tinyxml
31 CPPFLAGS = @CPPFLAGS@ $(INCLUDES)
36 INCLUDES = -I ${srcdir}/src -I ${srcdir}/src/pkginfo -I ${srcdir}/tinyxml
49 CORE_DLL_OBJECTS = climain.$(OBJEXT) \
50 pkgexec.$(OBJEXT) pkginfo.$(OBJEXT) pkgspec.$(OBJEXT) \
51 tinyxml.$(OBJEXT) tinyxmlparser.$(OBJEXT) \
52 tinystr.$(OBJEXT) tinyxmlerror.$(OBJEXT) \
53 mkpath.$(OBJEXT) xmlfile.$(OBJEXT) \
54 vercmp.$(OBJEXT) dmh.$(OBJEXT)
57 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
60 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
62 all: pkginfo$(EXEEXT) mingw-get$(EXEEXT) mingw-get-0.dll
64 pkginfo$(EXEEXT): driver.$(OBJEXT) pkginfo.$(OBJEXT)
65 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $+
67 mingw-get$(EXEEXT): clistub.$(OBJEXT)
68 $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $+
70 mingw-get-0.dll: $(CORE_DLL_OBJECTS)
71 $(CXX) -shared -o $@ $(CXXFLAGS) $(LDFLAGS) $+ $(LIBS)
74 climain.$(OBJEXT): pkgbase.h pkgtask.h dmh.h
75 pkgexec.$(OBJEXT): pkgbase.h pkgtask.h mkpath.h dmh.h
76 pkgspec.$(OBJEXT): pkgbase.h pkginfo.h vercmp.h
78 # Dependencies for stand alone pkginfo tool;
79 # (the pkginfo object is also required by the core DLL)...
81 driver.$(OBJEXT): pkginfo.h
82 pkginfo.$(OBJEXT): pkginfo.l pkginfo.h
84 # TinyXML dependencies...
86 tinyxml.$(OBJEXT): tinyxml.h
87 tinyxmlerror.$(OBJEXT): tinyxml.h
88 tinyxmlparser.$(OBJEXT): tinyxml.h
89 tinystr.$(OBJEXT): tinyxml.h
92 rm -f *.$(OBJEXT) *.dll pkginfo$(EXEEXT) mingw-get$(EXEEXT)
95 rm -f config.* Makefile
97 # $RCSfile$: end of file