home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / tools / make / pdmake / makefile.msc < prev    next >
Makefile  |  1990-07-06  |  1KB  |  72 lines

  1. # name of this program
  2. NAME    = make
  3.  
  4. # define the FLAGS as required for MSDOS or Unix
  5. CFLAGS    = /Oals /Gs /G2
  6. LDFLAGS = /link /cparmaxalloc:1 /noe /stack:2000 $(LIBS)
  7.  
  8. SRCS    = make.c parse.c build.c tstring.c
  9. OBJS    = make.o parse.o build.o tstring.o
  10. PROG    = $(NAME)$E
  11.  
  12. # define your installation directory
  13. BIN    = c:/bin
  14.  
  15. # archive utility
  16. ARCADD    = zoo a
  17.  
  18. # files to archive
  19. ARC1    = decl.h make.h tstring.h make.c parse.c build.c tstring.c default.mk
  20. ARC2    = default.bsd makefile makefile.bsd make.doc README $(PROG)
  21. ARCS    = $(ARC1) $(ARC2)
  22.  
  23. all:    $(PROG)
  24.  
  25. $(PROG):    $(OBJS)
  26.     echo out of date dependents($@): $?
  27.     $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LDFLAGS)
  28.  
  29. arc:    $(NAME).zoo
  30. zoo:    $(NAME).zoo
  31.  
  32. $(NAME).zoo:    $(ARCS)
  33.     $(RM) $(NAME).zoo
  34.     $(ARCADD) $(NAME).zoo $(ARC1)
  35.     $(ARCADD) $(NAME).zoo $(ARC2)
  36.  
  37. install:    $(BIN)/$(PROG) $(BIN)/default.mk
  38. $(BIN)/$(PROG):    $(PROG)
  39.     cp $(PROG) $(BIN)/$(PROG)
  40. $(BIN)/default.mk: default.mk
  41.     cp default.mk $(BIN)/default.mk
  42.  
  43. clean:
  44.     -$(RM) *.o
  45.     -$(RM) *.bak
  46.  
  47. # use this to check the size of the program (use chkdsk if necessary)
  48. size:
  49.     pmap
  50.  
  51. depend:
  52.     $(MKDEPEND) $(SRCS) > makefile.new
  53.     $(MV) makefile makefile.BAK
  54.     $(MV) makefile.new makefile
  55.  
  56. test:    $(OBJS)
  57.     echo out of date dependents($@): $?
  58.     link @<<END_OF_LINK
  59.         $(OBJS)
  60.         x$(NAME)
  61.         /cparmaxalloc:1 /noe /stack:2000
  62.         $(LIBS)
  63.     END_OF_LINK
  64.     echo End Of Link
  65.  
  66. # DO NOT DELETE THIS LINE
  67.  
  68. make.o: make.h tstring.h decl.h 
  69. parse.o: make.h tstring.h decl.h 
  70. build.o: make.h tstring.h decl.h 
  71. tstring.o: tstring.h 
  72.