OSDN Git Service

Add XML database bindings and preliminary action executive for CLI.
[mingw/mingw-get.git] / Makefile.in
1 # @configure_input@
2 #
3 # $Id$
4 #
5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2009, MinGW Project
7 #
8 #
9 # Makefile template for mingw-get
10 #
11 #
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.
17 #
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.
24 #
25 srcdir = @srcdir@
26
27 VPATH = ${srcdir}/src ${srcdir}/src/pkginfo ${srcdir}/tinyxml
28
29 CC = @CC@
30 CFLAGS = @CFLAGS@
31 CPPFLAGS = @CPPFLAGS@ $(INCLUDES)
32
33 CXX = @CXX@
34 CXXFLAGS = $(CFLAGS)
35
36 INCLUDES = -I ${srcdir}/src -I ${srcdir}/src/pkginfo -I ${srcdir}/tinyxml
37
38 LEX = @LEX@
39
40 AR = @AR@
41 ARFLAGS = @ARFLAGS@
42
43 OBJEXT = @OBJEXT@
44 EXEEXT = @EXEEXT@
45
46 LDFLAGS = @LDFLAGS@
47 LIBS = @LIBS@
48
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)
55
56 %.$(OBJEXT): %.c
57         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
58
59 %.$(OBJEXT): %.cpp
60         $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
61
62 all: pkginfo$(EXEEXT) mingw-get$(EXEEXT) mingw-get-0.dll
63
64 pkginfo$(EXEEXT):  driver.$(OBJEXT) pkginfo.$(OBJEXT)
65         $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $+
66
67 mingw-get$(EXEEXT): clistub.$(OBJEXT)
68         $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $+
69
70 mingw-get-0.dll: $(CORE_DLL_OBJECTS)
71         $(CXX) -shared -o $@ $(CXXFLAGS) $(LDFLAGS) $+ $(LIBS)
72
73 dmh.$(OBJEXT):     dmh.h
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
77
78 # Dependencies for stand alone pkginfo tool;
79 # (the pkginfo object is also required by the core DLL)...
80 #
81 driver.$(OBJEXT):  pkginfo.h
82 pkginfo.$(OBJEXT): pkginfo.l pkginfo.h
83
84 # TinyXML dependencies...
85 #
86 tinyxml.$(OBJEXT): tinyxml.h
87 tinyxmlerror.$(OBJEXT): tinyxml.h
88 tinyxmlparser.$(OBJEXT): tinyxml.h
89 tinystr.$(OBJEXT): tinyxml.h
90
91 clean:
92         rm -f *.$(OBJEXT) *.dll pkginfo$(EXEEXT) mingw-get$(EXEEXT)
93
94 distclean: clean
95         rm -f config.* Makefile
96
97 # $RCSfile$: end of file