home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / libc / Makefile < prev    next >
Makefile  |  1990-12-25  |  1KB  |  54 lines

  1. # C news local libc makefile - added by Ian Darwin
  2. # C news local libc makefile - added by Ian Darwin
  3. #    AMIGA
  4. # CC = lc
  5. CC = cc
  6.  
  7. INCLUDE = CN:include
  8. DEFINES = -I$(INCLUDE) -DFJE -DAMIGA
  9. #    AMIGA
  10. #    COPTS=-O # -g -p
  11. COPTS = -bs -sab -wl
  12. CFLAGS = $(COPTS) $(DEFINES)
  13. LINTFLAGS = -hau $(DEFINES)
  14. # workaround for System V make bug
  15. SHELL = /bin/sh
  16.  
  17. SRCS =    closeall.c efopen.c error.c fgetmfs.c nfclose.c \
  18.         standard.c stdfdopen.c warning.c emalloc.c split.c
  19. OBJS =    closeall.o efopen.o error.o fgetmfs.o getdate.o nfclose.o \
  20.         standard.o stdfdopen.o warning.o emalloc.o split.o
  21.  
  22. # RANLIB is ranlib on non-USG systems, echo on USG systems
  23. #RANLIB=ranlib
  24. #RANLIB=echo
  25. LIB = CN:libcnews.lib
  26.  
  27. .c.o:
  28.     $(CC) $(CFLAGS) $*.c
  29.  
  30. all:    $(OBJS)
  31.  
  32. libc.a:    $(SRCS)
  33.     $(CC) $(CFLAGS) -c $?
  34.     ar ru $@ *.o
  35.     rm *.o
  36.     $(RANLIB) $@
  37.  
  38. lint:
  39.     lint $(LINTFLAGS) $(SRCS)
  40.  
  41. getdate.c: getdate.y
  42.     bison $*.y
  43.     -delete getdate.c
  44.     rename getdate.tab.c getdate.c
  45.  
  46. getdate.o: getdate.c
  47.     $(CC) $(CFLAGS) -o $@ $*.c
  48.  
  49. lint:
  50.     lint $(LINTFLAGS) $(SRCS)
  51.  
  52. clean:
  53.     rm -f *.o *.a getdate.c y.*.h y.*.c
  54.