# @configure_input@ # # Makefile.in for pexports # Created 2013-05-29 by Keith Marshall # Copyright (C) 2013, MinGW.org Project. # PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ # Host identification is included in names of distributed tarballs. # host_os = @host_os@ # Directory configuration. # VPATH = @srcdir@ srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ # Compiler identification. # CC = @CC@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ # Output file extensions. # OBJEXT = @OBJEXT@ EXEEXT = @EXEEXT@ # Lexical analyser. # LEX = @LEX@ LFLAGS = @LFLAGS@ # Parser generator. # YACC = @YACC@ YFLAGS = @YFLAGS@ # Miscellaneous utility commands. # RM = rm -f MKDIR_P = @MKDIR_P@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ LN_S = @LN_S@ # Files to be included in a source tarball. # SRC_DISTFILES = \ AUTHORS README COPYING ChangeLog configure.ac configure \ Makefile.in hlex.l hlex.c hparse.y hparse.c hparse.h pexports.h \ pexports.c str_tree.c str_tree.h AUX_DISTFILES = \ config.guess config.sub install-sh # Files to be included in a binary tarball. # BIN_DISTFILES = pexports$(EXEEXT) # Files to be included in a documentation tarball. # DOC_DISTFILES = README ChangeLog # Files to be included in a licence tarball. # LIC_DISTFILES = COPYING OBJECT_FILES = \ hlex.$(OBJEXT) hparse.$(OBJEXT) pexports.$(OBJEXT) str_tree.$(OBJEXT) # Default build rule. # all: $(BIN_DISTFILES) # Configuration management. # configure: configure.ac cd @top_srcdir@; autoconf config.status: configure ./config.status --recheck Makefile: config.status Makefile.in ./config.status pexports$(EXEEXT): $(OBJECT_FILES) $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $^ $(LIBS) # Binary file build rules and dependency tracking. # INCLUDES = -I ${srcdir} PACKAGE_BUG_REPORT_URL = PACKAGE_BUG_REPORT='"@PACKAGE_BUGREPORT@"' PACKAGE_VERSION_STRING = PACKAGE_VERSION_STRING='"$(PACKAGE_VERSION)"' PACKAGE_DEFS = -D $(PACKAGE_VERSION_STRING) -D $(PACKAGE_BUG_REPORT_URL) CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS) $(PACKAGE_DEFS) sinclude *.dep %.$(OBJEXT): %.c $(CC) $(CDEPFLAGS) $(CFLAGS) $(INCLUDES) -c -o $@ $< %.c: %.y $(YACC) $(YFLAGS) -o $@ $< pexports.$(OBJEXT): Makefile hlex.$(OBJEXT): hlex.c hparse.h hparse.h: hparse.c # Installation rules. # install: all $(MKDIR_P) ${bindir} $(INSTALL_PROGRAM) $(BIN_DISTFILES) ${bindir} install-strip: $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install uninstall: for file in $(BIN_DISTFILES); \ do $(RM) ${bindir}/$$file; \ done # Distribution. # dist: srcdist bindist docdist licdist abs_top_srcdir = @abs_top_srcdir@ PACKAGE_DISTNAME = $(PACKAGE_DISTVERSION)-$(host_os) PACKAGE_DISTVERSION = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) srcdist: $(SRC_DISTFILES) $(RM) -r tmp $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION) cd tmp/$(PACKAGE_DISTVERSION) && \ for file in $(SRC_DISTFILES); \ do test -f ../../$$file && $(LN_S) ../../$$file . \ || $(LN_S) ${abs_top_srcdir}/$$file .; \ done $(MKDIR_P) tmp/$(PACKAGE_DISTVERSION)/build-aux cd tmp/$(PACKAGE_DISTVERSION)/build-aux && \ for file in $(AUX_DISTFILES); \ do $(LN_S) ${abs_top_srcdir}/build-aux/$$file .; \ done cd tmp && tar -chof - $(PACKAGE_DISTVERSION) \ | xz > ../$(PACKAGE_DISTNAME)-src.tar.xz $(RM) -r tmp bindist: $(BIN_DISTFILES) $(RM) -r tmp $(MAKE) prefix=`pwd`/tmp install cd tmp && tar -chof - bin | xz > ../$(PACKAGE_DISTNAME)-bin.tar.xz $(RM) -r tmp docdist: $(RM) -r tmp $(MKDIR_P) tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) cd tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) && \ for file in $(DOC_DISTFILES); \ do $(LN_S) ${abs_top_srcdir}/$$file .; \ done cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-doc.tar.xz $(RM) -r tmp licdist: $(RM) -r tmp $(MKDIR_P) tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) cd tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) && \ for file in $(LIC_DISTFILES); \ do $(LN_S) ${abs_top_srcdir}/$$file .; \ done cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-lic.tar.xz $(RM) -r tmp # Clean-up. # mostlyclean clean: $(RM) *.dep *.$(OBJEXT) $(BIN_DISTFILES) distclean realclean: clean $(RM) $(PACKAGE_DISTNAME)-*.tar.* config.status config.log maintainer-clean: distclean $(RM) hlex.c hparse.c hparse.h # Makefile.in: end of file