# Installation directories: INSTALLDIR = INSTALLDIR_IS_UNDEFINED INC = $(INSTALLDIR)/gcc/include LIB = $(INSTALLDIR)/lib HFILES = HOFILES = OFILES = MAINOBJ = \ zerotest.o LIBS = \ $(LIB)/libia.a \ $(LIB)/libflt.a \ $(LIB)/libjs.a PROG = \ zerotest OPTFLAGS = -g GCCFLAGS = \ -I$(INC) \ $(OPTFLAGS) \ -ansi \ -Wall -Wtraditional -Wpointer-arith -Wmissing-prototypes \ -mfpu all: $(HOFILES) $(PROG) cleanup: ;\ /bin/rm -f *.o *.a *.ho $(PROG) $(PSFILE) install: %.o: %.s ;\ gcc -c $(GCCFLAGS) $*.s %.o: %.c ;\ gcc -c $(GCCFLAGS) $*.c %.ho: %.h ;\ gcc -o $*.ho -c $(GCCFLAGS) -x c $*.h \ || /bin/rm -f $*.ho $(PROG): $(MAINOBJ) $(OFILES) $(LIBS) ;\ rm -f $(PROG) && \ gcc -L$(LIB) -o $(PROG) $(MAINOBJ) $(OFILES) $(LIBS) -lm &&\ $(PROG) # Dependencies of .h files: # Dependencies of .c and .s files: zerotest.o:: zerotest.c $(INC)/js.ho $(INC)/ioprotos.ho \ $(INC)/zerofind.ho $(INC)/flt.ho $(INC)/ia.h