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 / libcnews / Makefile < prev    next >
Makefile  |  1989-06-27  |  995b  |  42 lines

  1. # libcnews makefile
  2. INCLUDE=../include
  3. DEFINES=-I$(INCLUDE)
  4. COPTS= -O # -pg -p
  5. CFLAGS= $(COPTS) $(DEFINES)
  6. LINTFLAGS=-hau $(DEFINES)
  7. LIB=libcnews.a
  8. # RANLIB is ranlib on non-USG systems, echo on USG systems
  9. RANLIB=ranlib
  10. #RANLIB=:
  11. SRCS=complain.c config.c fopenclex.c hostname.c \
  12.  lock.c ltoza.c ngmatch.c readline.c \
  13.  string.c strlower.c strsave.c str3save.c time.c
  14. OBJS = complain.o config.o fopenclex.o gethdr.o hostname.o lock.o ltoza.o \
  15.     nemalloc.o ngmatch.o str3save.o string.o strlower.o strsave.o time.o
  16. # workaround for System V make bug
  17. SHELL = /bin/sh
  18.  
  19. u:    $(OBJS)
  20.     ar ruv ../libcnews.a $(OBJS)
  21.  
  22. all:    $(OBJS)
  23.  
  24. $(LIB): $(SRCS)
  25.     $(CC) $(CFLAGS) -c $?
  26.     ar rv $@ *.o
  27.     rm *.o
  28.     $(RANLIB) $@
  29.  
  30. lint:
  31.     lint $(LINTFLAGS) $(SRCS)
  32.  
  33. clean:
  34.     rm -f *.o
  35.  
  36. # header dependencies for libcnews.a
  37. config.o: $(INCLUDE)/news.h $(INCLUDE)/config.h
  38. lock.o: $(INCLUDE)/news.h
  39. ngmatch.o: $(INCLUDE)/news.h
  40. time.o: $(INCLUDE)/news.h
  41. # ltoza.o: $(INCLUDE)/stdlib.h    # trouble if stdlib.h is system one, not ours
  42.