# Makefile automatically generated, do not edit! # #@MD5TINOIGN@ Creation date: Mon Apr 25 15:35:49 CEST 2005 # # This file is based on following files: #@MD5TINOIGN@ 1: Makefile.tino #@MD5TINOIGN@ 2: /home/tino/src/gat/tino/Makefile.proto # #@MD5TINOIGN@ included: Makefile.tino # PROGS=gat OBJS= LIBS= ADD_CFLAGS= ADD_LDFLAGS= ADD_LDLIBS= CLEAN= DISTCLEAN= TINOCOPY= # #@MD5TINOIGN@ included: /home/tino/src/gat/tino/Makefile.proto # # CVS Header: /CVSROOT/tinolib/old/Makefile.proto,v 1.17 2005/04/24 12:55:38 tino Exp # CVS Log: Makefile.proto,v # Automatically generated from "PROGS" above PROG1=gat STD_CFLAGS=-g -Wall -O3 STD_LDFLAGS= STD_LDLIBS= # From here no changes shall be needed. # (Except for the compiler generated dependencies at the end.) CFLAGS=$(DBG_FLAGS) $(ADD_CFLAGS) $(STD_CFLAGS) -I$(HERE) LDFLAGS=$(DBG_LDFLAGS) $(ADD_LDFLAGS) $(STD_LDFLAGS) LDLIBS=$(DBG_LDLIBS) $(ADD_LDLIBS) $(STD_LDLIBS) VERSIONFILE=$(PROG1)_version.h COMMON= \ $(VERSIONFILE) \ $(TINOINC) \ $(TINOLIB) \ AWK=awk TOUCH=touch CP=cp STRIP=strip HERE=$(PWD) # Semi-automatically generated for CygWin (*.exe) PROGS_EXE= \ $(PROG1).exe \ # Targets considered to work for all systems with GNU MAKE and GNU AWK all: $(PROGS) Makefile: Makefile.md5 $(TOUCH) Makefile Makefile.md5:: @$(AWK) -vHERE="$(HERE)" -vMAKE="$(MAKE)" -vTINOCOPY="$(TINOCOPY)" 'BEGIN { \ if ((getline < "tino/Makefile")>0 && \ (getline < "tino/Makefile.proto")>0 && \ (getline < "tino/Makefile.awk")>-1) \ system(MAKE " -C tino tino HERE=\"" HERE "\" TINOCOPY=\"" TINOCOPY "\""); \ else if ((getline < "Makefile.md5")<0) \ printf "" >"Makefile.md5"; \ }' $(VERSIONFILE): VERSION Makefile $(AWK) -vPROG="$(PROG1)" '{ print "#define " toupper(PROG) "_VERSION \"" $$0 "\"" }' VERSION > $(VERSIONFILE) # Poor man's install install: IPATH="$(INSTALLPATH)"; [ -n "$$IPATH" ] || IPATH="$$HOME"; \ for a in $(PROGS); do $(RM) "$$IPATH/bin/$$a"; \ $(CP) "$$a" "$$IPATH/bin/$$a" && $(STRIP) "$$IPATH/bin/$$a"; done # Special targets considered to work for all unix like systems # like CygWin it: all [ ".$(PWD)" != ".$(HERE)" ] || [ -f VERSION ] || \ { UP="`dirname "$(HERE)"`"; $(MAKE) -C"$$UP" it HERE="$$UP"; } clean: $(RM) *.o *.d *~ .*~ */*~ $(CLEAN) @$(MAKE) -C tino clean HERE="$(HERE)" distclean: clean $(RM) $(VERSIONFILE) $(PROGS) $(PROGS_EXE) $(DISTCLEAN) $(RM) Makefile.md5 core core.* @$(MAKE) -C tino distclean HERE="$(HERE)" # Special targets in presence of tinolib # (subdirectory tino) dist: distclean $(MAKE) -C tino dist HERE="$(HERE)" DEBUGS="$(DBG_CFLAGS)$(DBG_LDFLAGS)$(DBG_LDLIBS)" tar: distclean $(MAKE) -C tino tar HERE="$(HERE)" diff: $(MAKE) -C tino diff HERE="$(HERE)" # automatically generated dependencies $(PROG1).o: $(PROG1).c $(COMMON) $(PROG1): $(PROG1).o $(OBJS) $(LIBS) # compiler generated dependencies, remove if incorrect # included: gat.d $(PROG1).o: gat.c tino/file.h tino/type.h tino/file_aio.h tino/fatal.h \ tino/ex.h tino/filetool.h tino/alloc.h tino/debug.h tino/str.h \ gat-lib.h gat-exitcodes.h gat-cmds.h # end