OSDN Git Service

Avoid uint32_t difference overflow in 64-bit pointer adjustment.
[mingw/pexports.git] / Makefile.in
1 # @configure_input@
2 #
3 # Makefile.in for pexports
4 # Created 2013-05-29 by Keith Marshall <keithmarshall@users.sourceforge.net>
5 # Copyright (C) 2013, MinGW.org Project.
6 #
7 PACKAGE_TARNAME = @PACKAGE_TARNAME@
8 PACKAGE_VERSION = @PACKAGE_VERSION@
9
10 # Host identification is included in names of distributed tarballs.
11 #
12 host_os = @host_os@
13
14 # Directory configuration.
15 #
16 VPATH = @srcdir@
17 srcdir = @srcdir@
18 prefix = @prefix@
19 exec_prefix = @exec_prefix@
20 bindir = @bindir@
21
22 # Compiler identification.
23 #
24 CC = @CC@
25 CPPFLAGS = @CPPFLAGS@
26 CFLAGS = @CFLAGS@
27 LDFLAGS = @LDFLAGS@
28
29 # Output file extensions.
30 #
31 OBJEXT = @OBJEXT@
32 EXEEXT = @EXEEXT@
33
34 # Lexical analyser.
35 #
36 LEX = @LEX@
37 LFLAGS = @LFLAGS@
38
39 # Parser generator.
40 #
41 YACC = @YACC@
42 YFLAGS = @YFLAGS@
43
44 # Miscellaneous utility commands.
45 #
46 RM = rm -f
47 MKDIR_P = @MKDIR_P@
48 INSTALL = @INSTALL@
49 INSTALL_PROGRAM = @INSTALL_PROGRAM@
50 LN_S = @LN_S@
51
52 # Files to be included in a source tarball.
53 #
54 SRC_DISTFILES = \
55   AUTHORS README COPYING ChangeLog configure.ac configure \
56   Makefile.in hlex.l hlex.c hparse.y hparse.c hparse.h pexports.h \
57   pexports.c str_tree.c str_tree.h
58
59 AUX_DISTFILES = \
60   config.guess config.sub install-sh
61
62 # Files to be included in a binary tarball.
63 #
64 BIN_DISTFILES = pexports$(EXEEXT)
65
66 # Files to be included in a documentation tarball.
67 #
68 DOC_DISTFILES = README ChangeLog
69
70 # Files to be included in a licence tarball.
71 #
72 LIC_DISTFILES = COPYING
73
74 OBJECT_FILES = \
75   hlex.$(OBJEXT) hparse.$(OBJEXT) pexports.$(OBJEXT) str_tree.$(OBJEXT)
76
77 # Default build rule.
78 #
79 all: $(BIN_DISTFILES)
80
81 # Configuration management.
82 #
83 configure: configure.ac
84         cd @top_srcdir@; autoconf
85
86 config.status: configure
87         ./config.status --recheck
88
89 Makefile: config.status Makefile.in
90         ./config.status
91
92 pexports$(EXEEXT): $(OBJECT_FILES)
93         $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $^ $(LIBS)
94
95 # Binary file build rules and dependency tracking.
96 #
97 INCLUDES = -I ${srcdir}
98 PACKAGE_BUG_REPORT_URL = PACKAGE_BUG_REPORT='"@PACKAGE_BUGREPORT@"'
99 PACKAGE_VERSION_STRING = PACKAGE_VERSION_STRING='"$(PACKAGE_VERSION)"'
100 PACKAGE_DEFS = -D $(PACKAGE_VERSION_STRING) -D $(PACKAGE_BUG_REPORT_URL)
101 CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS) $(PACKAGE_DEFS)
102 sinclude *.dep
103
104 %.$(OBJEXT): %.c
105         $(CC) $(CDEPFLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $<
106
107 %.c: %.y
108         $(YACC) $(YFLAGS) -o $@ $<
109
110 pexports.$(OBJEXT): Makefile
111 hlex.$(OBJEXT): hlex.c hparse.h
112 hparse.h: hparse.c
113
114 # Installation rules.
115 #
116 install: all
117         $(MKDIR_P) ${bindir}
118         $(INSTALL_PROGRAM) $(BIN_DISTFILES) ${bindir}
119
120 install-strip:
121         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
122
123 uninstall:
124         for file in $(BIN_DISTFILES); \
125           do $(RM) ${bindir}/$$file; \
126           done
127
128 # Distribution.
129 #
130 dist: srcdist bindist docdist licdist
131
132 abs_top_srcdir = @abs_top_srcdir@
133
134 PACKAGE_DISTNAME = $(PACKAGE_DISTVERSION)-$(host_os)
135 PACKAGE_DISTVERSION = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
136
137 srcdist: $(SRC_DISTFILES)
138         $(RM) -r tmp
139         $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)
140         cd tmp/$(PACKAGE_DISTVERSION) && \
141         for file in $(SRC_DISTFILES); \
142           do test -f ../../$$file && $(LN_S) ../../$$file . \
143              || $(LN_S) ${abs_top_srcdir}/$$file .; \
144           done
145         $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)/build-aux
146         cd tmp/$(PACKAGE_DISTVERSION)/build-aux && \
147         for file in $(AUX_DISTFILES); \
148           do $(LN_S) ${abs_top_srcdir}/build-aux/$$file .; \
149           done
150         cd tmp && tar -chof - $(PACKAGE_DISTVERSION) \
151           | xz > ../$(PACKAGE_DISTNAME)-src.tar.xz
152         $(RM) -r tmp
153
154 bindist: $(BIN_DISTFILES)
155         $(RM) -r tmp
156         $(MAKE) prefix=`pwd`/tmp install
157         cd tmp && tar -chof - bin | xz > ../$(PACKAGE_DISTNAME)-bin.tar.xz
158         $(RM) -r tmp
159
160 docdist:
161         $(RM) -r tmp
162         $(MKDIR_P) tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION)
163         cd tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) && \
164         for file in $(DOC_DISTFILES); \
165           do $(LN_S) ${abs_top_srcdir}/$$file .; \
166           done
167         cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-doc.tar.xz
168         $(RM) -r tmp
169
170 licdist:
171         $(RM) -r tmp
172         $(MKDIR_P) tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION)
173         cd tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) && \
174         for file in $(LIC_DISTFILES); \
175           do $(LN_S) ${abs_top_srcdir}/$$file .; \
176           done
177         cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-lic.tar.xz
178         $(RM) -r tmp
179
180 # Clean-up.
181 #
182 mostlyclean clean:
183         $(RM) *.dep *.$(OBJEXT) $(BIN_DISTFILES)
184
185 distclean realclean: clean
186         $(RM) $(PACKAGE_DISTNAME)-*.tar.* config.status config.log
187
188 maintainer-clean: distclean
189         $(RM) hlex.c hparse.c hparse.h 
190
191 # Makefile.in: end of file