OSDN Git Service

Set up build mechanism.
[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
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 %.$(OBJEXT): %.c
50         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
51
52 %.$(OBJEXT): %.cpp
53         $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
54
55 all: pkginfo$(EXEEXT)
56
57 pkginfo$(EXEEXT):  driver.$(OBJEXT) pkginfo.$(OBJEXT)
58         $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $+
59
60 driver.$(OBJEXT):  pkginfo.h
61 pkginfo.$(OBJEXT): pkginfo.l pkginfo.h
62
63 clean:
64         rm -f *.$(OBJEXT) *.dll pkginfo$(EXEEXT)
65
66 distclean: clean
67         rm -f config.* Makefile
68
69 # $RCSfile$: end of file