home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 529b.lha / BMake_v1.1 / Makefile < prev    next >
Encoding:
Makefile  |  1991-07-03  |  1.1 KB  |  47 lines

  1. #    Makefile for Make
  2. #    (c) Copyright 1991 by Ben Eng, All Rights Reserved
  3. #
  4. #    LIST of OPTIONS
  5. #    -DMAXLINE=1024 sets the maximum line length to 1024
  6. #    -DMAXSUFFIX=16 sets the maximum suffix length to 16
  7. #    -DMAXPATHNAME=108 sets the maximum length of a path name to 108
  8. #    -DMAX_MACRONAME=512    to overide internal default of 256
  9. #    -DFNCALLS=0 to disable function calls
  10. #    -DDEBUG=0 to disable the debugging features
  11. #    -gs enables dynamic stack growth
  12. #    -s enables symbolic information
  13. #    MiniMake OPTIONS := -DDEBUG=0 -DFNCALLS=0
  14. #    BigMake  OPTIONS :=
  15. OPTIONS :=
  16. CC := dcc
  17. CFLAGS = -r -ms -proto $(OPTIONS)
  18. LIBS := -lben
  19.  
  20. CNOBJS := cond.o input.o read.o recipe.o
  21. DHOBJS := main.o depend.o  dumprules.o make.o builtin.o \
  22.     macro.o expand.o fncall.o pattern.o $(CNOBJS)
  23. OBJS = lists.o snode.o param.o touch.o log.o parsing.o $(DHOBJS)
  24.  
  25. VERS := version.o
  26.  
  27. all: bmake
  28.  
  29. .PHONY: all
  30.  
  31. bmake: $(VERS)
  32.     $(CC) $(CFLAGS) -o $@ $(OBJS) $(VERS) $(LIBS)
  33.     -delete make.log
  34.  
  35. $(VERS): $(OBJS)
  36.  
  37. $(OBJS): make.h
  38. $(DHOBJS): depend.h
  39. $(CNOBJS): cond.h
  40.  
  41. clean:
  42.     -delete $(OBJS) $(VERS) make.log
  43.  
  44. install:
  45.     copy bmake sys:bin/make
  46.  
  47.