Makefile 811 B

12345678910111213141516171819202122232425262728293031323334353637
  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. ifeq ($(PLATFORM),i386-ELKS)
  5. CFLAGS=$(ARCH) $(WALL) $(CCFLAGS) $(DEFS)
  6. else
  7. CFLAGS=$(ARCH) -ansi $(CCFLAGS) $(DEFS)
  8. endif
  9. PSRC=__getpwent.c pwent.c getpwnam.c getpwuid.c putpwent.c getpw.c fgetpwent.c
  10. GSRC=__getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c initgroups.c \
  11. config-grp.h
  12. USRC=utent.c
  13. POBJ=__getpwent.o pwent.o getpwnam.o getpwuid.o putpwent.o getpw.o fgetpwent.o
  14. GOBJ=__getgrent.o grent.o getgrnam.o getgrgid.o fgetgrent.o initgroups.o
  15. UOBJ=utent.o
  16. ifeq ($(LIB_OS),ELKS)
  17. OBJ=$(POBJ) $(GOBJ) $(UOBJ)
  18. all: $(LIBC)($(OBJ))
  19. @$(RM) $(OBJ)
  20. $(LIBC)($(GOBJ)): config-grp.h
  21. else
  22. all:
  23. @:
  24. endif
  25. clean:
  26. rm -f *.o libc.a