home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / MDIDEMO / MDIDEMO.MAK < prev    next >
Makefile  |  1993-12-01  |  2KB  |  66 lines

  1. ############################################################################
  2. #                                                                          #
  3. #  MAKEFILE for the TIMEDEMO                                               #
  4. #                                                                          #
  5. ############################################################################
  6.  
  7. # Compiler is 'M' for Microsoft, 'T' for Borland Turbo C
  8. COMPILER = M
  9. # Model is 
  10. #   1) Microsoft C - 'M' for Medium, 'L' for Large
  11. #   2) Turbo C - 'm' for medium, 'l' for large
  12. MODEL = L
  13.  
  14. # Microsoft C macros
  15. CC = cl
  16. OPT = /Oait /Gs
  17. DEBUG = /Od /Zi
  18. CFLAGS = /c /A$(MODEL) /J /DMSC /DDOS /I\mewel /D_MEWEL_ $(OPT)
  19. ASM = masm 
  20. # LMODEL should be 1 if you want large data
  21. ASMFLAGS = /DLMODEL=0 /DTC=0
  22. LIB = lib
  23. LINK = link
  24. LFLAGS = /packcode /f /stack:8192
  25.  
  26. # Borland Turbo C macros
  27. #CC = tcc
  28. # Optimization : -G favors speed over size, -O improves jumps & loops
  29. #OPT = -G -O
  30. #CFLAGS = -v -c -d -f- -k -N -K -m$(MODEL) -DTC -w-aus -w-pia -w-stu -w-rvl -w-par
  31. #ASM = tasm
  32. #ASMFLAGS = /dTC=1 /dLMODEL=0 /mx
  33. #LIB = tlib
  34. #LINK = tlink
  35. #LFLAGS = /v
  36.  
  37. # We tack the compiler and model onto the end of the library name, so
  38. # the library for Borland's Turbo C, medium model would be called WINLIBTM.LIB
  39.  
  40. # Inference rules for C and ASM files
  41.  
  42. .c.obj :
  43.     $(CC) $(CFLAGS) $*.c
  44.  
  45. .asm.obj :
  46.     $(ASM) $(ASMFLAGS) $*;
  47.  
  48. .rc.res :
  49.     \mewel\rc $*
  50.  
  51.  
  52. DEMO = mdidemo
  53. OBJS = $(DEMO).obj
  54.  
  55. $(DEMO).obj :   $(DEMO).c
  56.  
  57. $(DEMO).res :   $(DEMO).rc
  58.  
  59. $(DEMO).exe :   $(OBJS) $(DEMO).res
  60. # Microsoft
  61.   $(LINK) $(LFLAGS) $(OBJS),$(DEMO),nul,\mewel\winlib$(COMPILER)$(MODEL).lib;
  62.   \mewel\rc $(DEMO).res
  63. # Turbo C
  64. # $(LINK) $(LFLAGS) e:\tc\lib\c0$(MODEL)+$(OBJS),\
  65. #      $(DEMO),nul,e:\tc\lib\c$(MODEL)+winlib$(COMPILER)$(MODEL)
  66.