# Installation directories: INSTALLDIR = INSTALLDIR_IS_UNDEFINED INC = $(INSTALLDIR)/gcc/include LIB = $(INSTALLDIR)/lib HFILES = \ ps.h HOFILES = \ ps.ho OFILES = \ ps.o LIBFILE = \ libps.a GCCFLAGS = \ -I. -I$(INC) \ -g -pg \ -ansi \ -Wall -Wtraditional -Wpointer-arith -Wmissing-prototypes \ -mfpu .PHONY: all cleanup uninstall install all: uninstall $(HOFILES) $(LIBFILE) install cleanup: ;\ /bin/rm -f *~ *.ho *.o *.a uninstall: ;\ ( cd $(INC) && rm -f $(HFILES) $(HOFILES) ) ;\ ( cd $(LIB) && rm -f $(LIBFILE) ) install: ;\ cp -p $(HFILES) $(HOFILES) $(INC) ;\ cp -p $(LIBFILE) $(LIB) %.o: %.c ;\ gcc -c $(GCCFLAGS) $*.c %.ho: %.h ;\ gcc -o $*.ho -c $(GCCFLAGS) -x c $*.h \ || /bin/rm -f $*.ho $(LIBFILE): $(OFILES) ;\ rm -f $*.a && ar crv $*.a $(OFILES) && ranlib $*.a # Dependencies of .h files: ps.ho:: ps.h # Dependencies for .c files: ps.o:: ps.c ps.ho $(INC)/js.ho $(INC)/ioprotos.ho