3 # Makefile.in for pexports
4 # Created 2013-05-29 by Keith Marshall <keithmarshall@users.sourceforge.net>
5 # Copyright (C) 2013, MinGW.org Project.
7 PACKAGE_TARNAME = @PACKAGE_TARNAME@
8 PACKAGE_VERSION = @PACKAGE_VERSION@
10 # Host identification is included in names of distributed tarballs.
14 # Directory configuration.
19 exec_prefix = @exec_prefix@
22 # Compiler identification.
29 # Output file extensions.
44 # Miscellaneous utility commands.
49 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 # Files to be included in a source tarball.
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
60 config.guess config.sub install-sh
62 # Files to be included in a binary tarball.
64 BIN_DISTFILES = pexports$(EXEEXT)
66 # Files to be included in a documentation tarball.
68 DOC_DISTFILES = README ChangeLog
70 # Files to be included in a licence tarball.
72 LIC_DISTFILES = COPYING
75 hlex.$(OBJEXT) hparse.$(OBJEXT) pexports.$(OBJEXT) str_tree.$(OBJEXT)
81 # Configuration management.
83 configure: configure.ac
84 cd @top_srcdir@; autoconf
86 config.status: configure
87 ./config.status --recheck
89 Makefile: config.status Makefile.in
92 pexports$(EXEEXT): $(OBJECT_FILES)
93 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $^ $(LIBS)
95 # Binary file build rules and dependency tracking.
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)
105 $(CC) $(CDEPFLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $<
108 $(YACC) $(YFLAGS) -o $@ $<
110 pexports.$(OBJEXT): Makefile
111 hlex.$(OBJEXT): hlex.c hparse.h
114 # Installation rules.
118 $(INSTALL_PROGRAM) $(BIN_DISTFILES) ${bindir}
121 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
124 for file in $(BIN_DISTFILES); \
125 do $(RM) ${bindir}/$$file; \
130 dist: srcdist bindist docdist licdist
132 abs_top_srcdir = @abs_top_srcdir@
134 PACKAGE_DISTNAME = $(PACKAGE_DISTVERSION)-$(host_os)
135 PACKAGE_DISTVERSION = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
137 srcdist: $(SRC_DISTFILES)
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 .; \
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 .; \
150 cd tmp && tar -chof - $(PACKAGE_DISTVERSION) \
151 | xz > ../$(PACKAGE_DISTNAME)-src.tar.xz
154 bindist: $(BIN_DISTFILES)
156 $(MAKE) prefix=`pwd`/tmp install
157 cd tmp && tar -chof - bin | xz > ../$(PACKAGE_DISTNAME)-bin.tar.xz
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 .; \
167 cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-doc.tar.xz
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 .; \
177 cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-lic.tar.xz
183 $(RM) *.dep *.$(OBJEXT) $(BIN_DISTFILES)
185 distclean realclean: clean
186 $(RM) $(PACKAGE_DISTNAME)-*.tar.* config.status config.log
188 maintainer-clean: distclean
189 $(RM) hlex.c hparse.c hparse.h
191 # Makefile.in: end of file