home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / msdos / tccdos / config.mk < prev    next >
Makefile  |  1994-10-23  |  2KB  |  55 lines

  1. # This is the Turbo C 2.0 DOS configuration file for DMAKE
  2. #    It simply modifies the values of SRC, and checks to see if
  3. #    OSENVIRONMENT is defined.  If so it includes the appropriate
  4. #    config.mk file.
  5. #
  6. # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
  7. # directory.
  8. #
  9. osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
  10.  
  11. # Definition of macros for library, and C startup code.
  12. LDLIBS            = d:/cc/tcc/lib/c$(MODEL)
  13. CSTARTUP    = d:/cc/tcc/lib/c0$(MODEL).obj
  14.  
  15. # The following sources are required for TURBO C 2.0
  16. OSR_SRC = tempnam.c utime.c
  17. .SETDIR=$(osrdir) : $(OSR_SRC)
  18.  
  19. SRC += $(OSR_SRC)
  20. .SOURCE.h : $(osrdir)
  21.  
  22. # Local configuration modifications for CFLAGS.  Make sure your turboc.cfg
  23. # file contains a -D__STDC__=1 and -DM_I86=1, if not then uncomment the line
  24. # below!
  25. #CFLAGS += -DM_I86=1 -D__STDC__=1
  26.  
  27. # You can get a smaller executable still, buy adding a -1 to the list of
  28. # flags below, but then you can't run this on an 8086/88 cpu.
  29. #CFLAGS += -1
  30. #CFLAGS  += -I$(osrdir) -f- -d -O -N- -w-nod $(C_$(MODEL))
  31. CFLAGS  += -I$(osrdir) -f- -d -O -N -w-nod $(C_$(MODEL))
  32. ASFLAGS += -t -mx $(S_$(MODEL))
  33.  
  34. # Debugging information for Turbo-C
  35. DB_CFLAGS  += -v
  36. DB_LDFLAGS += /v
  37.  
  38. # Case of identifiers is significant
  39. NDB_LDFLAGS += /c
  40.  
  41. # See if we modify anything in the lower levels.
  42. .IF $(OSENVIRONMENT) != $(NULL)
  43.    .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
  44. .END
  45.  
  46. C_s =
  47. C_m = -mm
  48. C_c = -mc
  49. C_l = -ml
  50.  
  51. S_s = -dmsmall
  52. S_m = -dmmedium
  53. S_c = -dmcompact
  54. S_l = -dmlarge
  55.