home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / streams / handles / makefile < prev    next >
Encoding:
Makefile  |  1992-03-02  |  1.0 KB  |  47 lines

  1. # makefile to test with Turbo C
  2. #
  3. # Tested with Turbo C++ v1.0 and GNU make (works with tc make too).
  4. # Also tested with Turbo C 1.5, and Borland C++ v2.0.
  5. #
  6. #  W. Metzenthen   2nd March 1992
  7. #
  8.  
  9.  
  10. ################ Start of Turbo C version-dependent part ###############
  11.  
  12. # -v can't be used with Turbo C v1.0, v1.5 (or with v2.0 ?)
  13. #DEBUG    = -v
  14. DEBUG    =
  15.  
  16. # Use this if you have Turbo C v1.0 or v1.5 (or with v2.0 ?):
  17. #LDFLAGS    = -M
  18. # Use this for Turbo C++ v1.0 or later:
  19. LDFLAGS    = -ls
  20.  
  21. ################ End of Turbo C version-dependent part ###############
  22.  
  23. SHELL    = command.com
  24.  
  25. MODEL    = s
  26. CC    = tcc
  27. OBJS    = test2.obj close.obj
  28.  
  29. CFLAGS    = -O -m$(MODEL) $(DEBUG) -w
  30.  
  31.  
  32. test2.exe:    $(OBJS) makefile
  33.     $(CC) -m$(MODEL) $(DEBUG) $(LDFLAGS) -e$* $(OBJS)
  34.  
  35. clean:
  36.     del fd_*.$$$$$$
  37.     del str_*.$$$$$$
  38.  
  39.  
  40. # The following are needed for Turbo C make.
  41. # GNU make does have its advantages!
  42. test2.obj:    test2.c makefile
  43.     $(CC) -c $(CFLAGS) test2.c
  44.  
  45. close.obj:    close.c makefile
  46.     $(CC) -c $(CFLAGS) close.c
  47.