|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 3785 (0xec9) Types: TextFile Names: »Makefile«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89 └─⟦cc8755de2⟧ »./libg++-1.36.1.tar.Z« └─⟦23757c458⟧ └─⟦this⟧ »libg++/etc/Makefile«
# A makefile for the stuff now in libg++/etc # ------ source locations # source directory for libg++.a SRCDIR = ../../src # source include directory SRCIDIR= ../../g++-include # ------ installation destinations # ------ You will require write-permission on the destination directories # ------ in order to `make install' prefix =/usr/gnu # libg++.a destination LIBDIR = $(prefix)/lib # executables directory: location to install the genclass class generator BINDIR = $(prefix)/bin # location to install include file directory IDIR = $(prefix)/lib/g++-include # ------- System-dependent defines # ------- use the second form of each for SystemV (USG) # g++ flags OSFLAG= #OSFLAG = -DUSG # ld or ld++ flags OSLDFLAG = #OSLDFLAG= -lPW # how to install INSTALL=install -c #INSTALL=cp # ranlib if necessary RANLIB=ranlib #RANLIB=echo # which make? MAKE=make # not used, but convenient for those who preprocess things while compiling SHELL=/bin/sh # ------ compiler names # GNU C++ compiler name GXX = g++ #GXX=gcc # GNU CC compiler name (needed for some .c files in libg++.a) CC = gcc # GNU loader LDXX = $(LIBDIR)/gcc-ld++ # crt0+.o location (for dynamic loading tests) GXXCRT1=$(LIBDIR)/crt1+.o # ------ Other compilation flags # ------ modify as you like -- the ones here are sheer overkill GXX_OPTIMIZATION_FLAGS= -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized GCC_OPTIMIZATION_FLAGS= -O -fstrength-reduce -fdelayed-branch DEBUG_FLAGS= -g #use this only if you like to look at lots of useless messages VERBOSITY_FLAGS= -Wall -v GXX_INCLUDE_DIRS= -I$(SRCIDIR) GCC_INCLUDE_DIRS= -I$(prefix)/lib/gcc-include -I/usr/include -I$(SRCIDIR) PIPE_AS= -pipe # Flags for all C++ compiles GXXFLAGS = $(OSFLAG) $(GXX_INCLUDE_DIRS) $(DEBUG_FLAGS) $(GXX_OPTIMIZATION_FLAGS) $(VERBOSITY_FLAGS) $(PIPE_AS) # Flags for all C compiles CFLAGS= $(OSFLAG) $(GCC_INCLUDE_DIRS) $(DEBUG_FLAGS) $(GCC_OPTIMIZATION_FLAGS) $(VERBOSITY_FLAGS) $(PIPE_AS) # g++ load time flags GXXLDFLAGS = -L$(SRCDIR) -lg++ -lm $(OSLDFLAG) # these flags tell test0 where ld++ and crt1+.o are TFLAGS = -DLDXX=\"$(LDXX)\" -DCRT1X=\"$(GXXCRT1)\" # g++ files should have extension .cc .SUFFIXES: .cc .cc.o: $(GXX) $(GXXFLAGS) -c $< DEMOS= fib generic-q search keyhash \ tsort tsortinp genkey patricia kmp dhrystone all: etags demos graph tests demos: $(DEMOS) tests: $(DEMOS) -./fib 1000 -./generic-q < ./generic-q.cc -./tsortinp 20 | ./tsort -./keyhash < ./keyhash.cc -./search 1000 -./genkey 1000 200 > input -./patricia ./input ./input | grep -v "is found" # -./dhrystone etags: etags.o $(CC) $(CFLAGS) etags.o -o etags etags.o: etags.c $(CC) $(CFLAGS) -DETAGS -c etags.c fib: fib.o $(GXX) fib.o $(GXXLDFLAGS) -o fib generic-q: generic-q.o $(GXX) generic-q.o $(GXXLDFLAGS) -o generic-q tsort: tsortinp tsort.o $(GXX) tsort.o $(GXXLDFLAGS) -o tsort tsortinp: tsortinp.o $(GXX) tsortinp.o $(GXXLDFLAGS) -o tsortinp keyhash: keyhash.o $(GXX) keyhash.o $(GXXLDFLAGS) -o keyhash search: search.o $(GXX) search.o $(GXXLDFLAGS) -o search genkey: genPatkey.o $(GXX) genPatkey.o $(GXXLDFLAGS) -o genkey Patmain.o: Patricia.h patricia: Patmain.o $(GXX) Patmain.o $(GXXLDFLAGS) -o patricia kmp: Patmain.o kmp.o $(GXX) kmp.o $(GXXLDFLAGS) -o kmp dhrystone.o: Int.h Char.h dhrystone: dhrystone.o $(GXX) dhrystone.o $(GXXLDFLAGS) -o dhrystone .PHONY: graph graph: (cd graph; $(MAKE) GXX="$(GXX)" GXXFLAGS="$(GXXFLAGS)" GXXLDFLAGS="$(GXXLDFLAGS)" LIBDIR="$(LIBDIR)" SRCIDIR="$(SRCIDIR)" CC="$(CC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" LDXX="$(LDXX)" GXXCRT1="$(GXXCRT1)" MAKE="$(MAKE)" prefix="$(prefix)") clean: rm -f *.o $(DEMOS) core input C++.hack* etags (cd graph; make realclean)