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)
67 hlex.$(OBJEXT) hparse.$(OBJEXT) pexports.$(OBJEXT) str_tree.$(OBJEXT)
73 # Configuration management.
75 configure: configure.ac
76 cd @top_srcdir@; autoconf
78 config.status: configure
79 ./config.status --recheck
81 Makefile: config.status Makefile.in
84 pexports$(EXEEXT): $(OBJECT_FILES)
85 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $^ $(LIBS)
87 # Binary file build rules and dependency tracking.
89 INCLUDES = -I ${srcdir}
90 PACKAGE_BUG_REPORT_URL = PACKAGE_BUG_REPORT='"@PACKAGE_BUGREPORT@"'
91 PACKAGE_VERSION_STRING = PACKAGE_VERSION_STRING='"$(PACKAGE_VERSION)"'
92 PACKAGE_DEFS = -D $(PACKAGE_VERSION_STRING) -D $(PACKAGE_BUG_REPORT_URL)
93 CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS) $(PACKAGE_DEFS)
97 $(CC) $(CDEPFLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $<
100 $(YACC) $(YFLAGS) -o $@ $<
102 hlex.$(OBJEXT): hlex.c hparse.h
105 # Installation rules.
109 $(INSTALL_PROGRAM) $(BIN_DISTFILES) ${bindir}
112 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
115 for file in $(BIN_DISTFILES); \
116 do $(RM) ${bindir}/$$file; \
121 dist: srcdist bindist
123 abs_top_srcdir = @abs_top_srcdir@
125 PACKAGE_DISTNAME = $(PACKAGE_DISTVERSION)-$(host_os)
126 PACKAGE_DISTVERSION = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
128 srcdist: $(SRC_DISTFILES)
130 $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)
131 cd tmp/$(PACKAGE_DISTVERSION) && \
132 for file in $(SRC_DISTFILES); \
133 do test -f ../../$$file && $(LN_S) ../../$$file . \
134 || $(LN_S) ${abs_top_srcdir}/$$file .; \
136 $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)/build-aux
137 cd tmp/$(PACKAGE_DISTVERSION)/build-aux && \
138 for file in $(AUX_DISTFILES); \
139 do $(LN_S) ${abs_top_srcdir}/build-aux/$$file .; \
141 cd tmp && tar -chof - $(PACKAGE_DISTVERSION) \
142 | xz > ../$(PACKAGE_DISTNAME)-src.tar.xz
145 bindist: $(BIN_DISTFILES)
147 $(MAKE) prefix=`pwd`/tmp install
148 cd tmp && tar -chof - bin | xz > ../$(PACKAGE_DISTNAME)-bin.tar.xz
154 $(RM) *.dep *.$(OBJEXT) $(BIN_DISTFILES)
156 distclean realclean: clean
157 $(RM) $(PACKAGE_DISTNAME)-*.tar.* config.status config.log
159 maintainer-clean: distclean
160 $(RM) hlex.c hparse.c hparse.h
162 # Makefile.in: end of file