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 / libbsd42 / Makefile < prev   
Makefile  |  1989-06-27  |  530b  |  31 lines

  1. # C news libbsd42 makefile
  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 = clsexec.c fopenexcl.c getcwd.c
  11. OBJS = clsexec.o fopenexcl.o getcwd.o
  12.  
  13. # RANLIB is ranlib on non-USG systems, echo on USG systems
  14. RANLIB=ranlib
  15.  
  16. u:    $(OBJS)
  17.     ar ruv ../libcnews.a $(OBJS)
  18.  
  19. all:    $(OBJS)
  20.  
  21. libbsd42.a: $(SRCS)
  22.     $(CC) $(CFLAGS) -c $?
  23.     ar ru $@ *.o
  24.     rm *.o
  25.     $(RANLIB) $@
  26. lint:
  27.     lint $(LINTFLAGS) $(SRCS)
  28.  
  29. clean:
  30.     rm -f *.o
  31.