1# Copyright (C) 1996 Nat Friedman <ndf@aleph1.mit.edu> 2# This file is part of the Linux-8086 C library and is distributed 3# under the GNU Library General Public License. 4 5ifeq ($(PLATFORM),i386-ELKS) 6CFLAGS=-pipe -O2 -fno-strict-aliasing $(ARCH) $(WALL) $(CCFLAGS) $(DEFS) 7else 8CFLAGS=-pipe -O2 -fno-strict-aliasing $(ARCH) -ansi $(CCFLAGS) $(DEFS) 9endif 10 11PSRC=__getpwent.c pwent.c getpwnam.c getpwuid.c putpwent.c getpw.c fgetpwent.c 12GSRC=__getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c initgroups.c \ 13 config-grp.h 14USRC=utent.c 15 16POBJ=__getpwent.o pwent.o getpwnam.o getpwuid.o putpwent.o getpw.o fgetpwent.o 17GOBJ=__getgrent.o grent.o getgrnam.o getgrgid.o fgetgrent.o initgroups.o 18UOBJ=utent.o 19 20ifeq ($(LIB_OS),ELKS) 21 22OBJ=$(POBJ) $(GOBJ) $(UOBJ) 23 24all: $(LIBC)($(OBJ)) 25 @$(RM) $(OBJ) 26 27$(LIBC)($(GOBJ)): config-grp.h 28 29else 30all: 31 @: 32endif 33 34clean: 35 rm -f *.o libc.a 36 37