home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff319.lzh / CNewsSrc / cnews.orig.lzh / libc / Makefile < prev    next >
Makefile  |  1989-06-27  |  723b  |  35 lines

  1. # C news local libc makefile - added by Ian Darwin
  2. INCLUDE=../include
  3. DEFINES=-I$(INCLUDE)
  4. COPTS=-O # -g -p
  5. CFLAGS=$(COPTS) $(DEFINES)
  6. LINTFLAGS=-hau $(DEFINES)
  7. # workaround for System V make bug
  8. SHELL = /bin/sh
  9.  
  10. SRCS=closeall.c efopen.c error.c fgetmfs.c \
  11.     nfclose.c \
  12.     standard.c stdfdopen.c warning.c emalloc.c
  13. OBJS = closeall.o efopen.o error.o fgetmfs.o getdate.o nfclose.o \
  14.     standard.o stdfdopen.o warning.o emalloc.o
  15.  
  16. # RANLIB is ranlib on non-USG systems, echo on USG systems
  17. RANLIB=ranlib
  18. #RANLIB=echo
  19.  
  20. u:    $(OBJS)
  21.     ar ruv ../libcnews.a $(OBJS)
  22.  
  23. all:    $(OBJS)
  24.  
  25. libc.a:    $(SRCS)
  26.     $(CC) $(CFLAGS) -c $?
  27.     ar ru $@ *.o
  28.     rm *.o
  29.     $(RANLIB) $@
  30. lint:
  31.     lint $(LINTFLAGS) $(SRCS)
  32.  
  33. clean:
  34.     rm -f *.o *.a getdate.c y.*.h y.*.c
  35.