home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / turbo_c / tick.arc / MAKEFILE < prev    next >
Text File  |  1988-03-08  |  1KB  |  55 lines

  1.  
  2. MODEL    = ml
  3. #    turn optimization on by default
  4. CFLAGS        = -O
  5.  
  6. DEST          = .
  7.  
  8. EXTHDRS          = /turboc/include/dos.h \
  9.         /turboc/include/stdarg.h \
  10.         /turboc/include/stdio.h \
  11.         /turboc/include/stdlib.h
  12.  
  13. HDRS          = TICK.H
  14.  
  15. LIBS          = 
  16.  
  17. MAKEFILE      = makefile
  18.  
  19. OBJS          = TEST.OBJ \
  20.         TICK.OBJ
  21.  
  22. #    Print over the ethernet
  23. PRINT          = eprint
  24.  
  25. PROGRAM          = test.exe
  26.  
  27. SRCS          = TEST.C \
  28.         TICK.C
  29.  
  30. all:        $(PROGRAM)
  31.  
  32. $(PROGRAM):     $(OBJS) $(LIBS)
  33.         $(LINK) $(STDOBJFILES) $(OBJS),$@,,$(LIBS) $(STDLIBFILES)
  34.  
  35. clean:;    rm -f *.bak *.lst *.map $(OBJS) 
  36.  
  37. depend:;    @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  38.  
  39. install:    $(PROGRAM)
  40.         @mv $(PROGRAM) $(DEST)
  41.  
  42. print:;        $(PRINT) $(HDRS) $(SRCS)
  43.  
  44. program:        $(PROGRAM)
  45.  
  46. update:        $(DEST)/$(PROGRAM)
  47.  
  48. $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
  49.         @make -f $(MAKEFILE) DEST=$(DEST) install
  50. ###
  51. TEST.OBJ: /turboc/include/stdio.h /turboc/include/stdarg.h tick.h \
  52.     /turboc/include/dos.h
  53. TICK.OBJ: /turboc/include/stdlib.h /turboc/include/stdio.h \
  54.     /turboc/include/stdarg.h tick.h /turboc/include/dos.h
  55.