# # Makefile for some ansi-library functions # LIB =../Libc.a AR =gar AS =gas LD =gld LDFLAGS =-s -x CC =gcc #INC =-nostdinc -I/linux/usr/include CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \ -finline-functions $(INC) CPP =(CC) -E $(INC) .c.s: $(CC) $(CFLAGS) \ -S -o $*.s $< .s.o: $(CC) -c -o $*.o $< .c.o: $(CC) $(CFLAGS) \ -c -o $*.o $< OBJS = fgetgrent.o getgrent.o getgrgid.o getgrnam.o grpopen.o \ grpread.o initgroups.o all: library library: $(OBJS) $(AR) uvc $(LIB) $(OBJS) sync clean: $(RM) -f core *.o *.a tmp_make for i in *.c;do $(RM) -f `basename $$i .c`.s;done dep: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \ $(CPP) -M $$i;done) >> tmp_make cp tmp_make Makefile ### Dependencies: