home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD2.img / d4xx / d473 / cnewssrc / cnews_src.lzh / libc / mk.amix < prev    next >
Text File  |  1990-12-31  |  1KB  |  64 lines

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