# ABC Anthony B. Coates, makefile for FunnelWeb .SUFFIXES: .c .o .a # Set the C compiler to be CC or GCC as appropriate #CC=cc #CC=gcc -g -O -c -Wall CC=c89 -O2 -w1 -c # Linker/loader #LD=gcc -g -O LD=c89 -O2 -w1 # Libraries, etc. #LIBS= LIBS=-call_shared # Make MAKE=make # Remove/delete RM=\rm # List directory LS=ls # Directory separator DSP=/ # FunnelWeb executable file name FWX=fw # Command script for running tests TEST=cd ../scripts ; ../fwACsrc/fw +xmaster # The full list of FunnelWeb C source files SRC=\ analyse.c as.c clock.c command.c data.c \ dump.c help.c help_gnu.c list.c lister.c \ machin.c main.c mapper.c fwmem.c misc.c \ option.c parser.c scanner.c section.c table.c \ tangle.c texhead.c weave.c writfile.c htmlhead.c # The full list of FunnelWeb object files OBJ=$(SRC:.c=.o) # The list of FunnelWeb object files/libraries OBJLIST=$(OBJ) all: $(FWX) test $(FWX): $(OBJLIST) $(LD) -o $(FWX) $(OBJLIST) $(LIBS) strip $(FWX) .c.o: $(CC) $< test: $(TEST) clean: $(RM) *.o # end of Makefile