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 CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS)
94 $(CC) $(CDEPFLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $<
97 $(YACC) $(YFLAGS) -o $@ $<
99 hlex.$(OBJEXT): hlex.c hparse.h
102 # Installation rules.
106 $(INSTALL_PROGRAM) $(BIN_DISTFILES) ${bindir}
109 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
112 for file in $(BIN_DISTFILES); \
113 do $(RM) ${bindir}/$$file; \
118 dist: srcdist bindist
120 abs_top_srcdir = @abs_top_srcdir@
122 PACKAGE_DISTNAME = $(PACKAGE_DISTVERSION)-$(host_os)
123 PACKAGE_DISTVERSION = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
125 srcdist: $(SRC_DISTFILES)
127 $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)
128 cd tmp/$(PACKAGE_DISTVERSION) && \
129 for file in $(SRC_DISTFILES); \
130 do test -f ../../$$file && $(LN_S) ../../$$file . \
131 || $(LN_S) ${abs_top_srcdir}/$$file .; \
133 $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)/build-aux
134 cd tmp/$(PACKAGE_DISTVERSION)/build-aux && \
135 for file in $(AUX_DISTFILES); \
136 do $(LN_S) ${abs_top_srcdir}/build-aux/$$file .; \
138 cd tmp && tar -chof - $(PACKAGE_DISTVERSION) \
139 | xz > ../$(PACKAGE_DISTNAME)-src.tar.xz
142 bindist: $(BIN_DISTFILES)
144 $(MAKE) prefix=`pwd`/tmp install
145 cd tmp && tar -chof - bin | xz > ../$(PACKAGE_DISTNAME)-bin.tar.xz
151 $(RM) *.dep *.$(OBJEXT) $(BIN_DISTFILES)
153 distclean realclean: clean
154 $(RM) $(PACKAGE_DISTNAME)-*.tar.* config.status config.log
156 maintainer-clean: distclean
157 $(RM) hlex.c hparse.c hparse.h
159 # Makefile.in: end of file