home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / msdos / bccdos / config.mk < prev    next >
Makefile  |  1994-10-23  |  1KB  |  51 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/bcc/lib/c$(MODEL)
  13. CSTARTUP    = d:/cc/bcc/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) -d -O -N- -w-nod $(C_$(MODEL))
  31. ASFLAGS += -t -mx $(S_$(MODEL))
  32.  
  33. # Debugging information for Turbo-C
  34. DB_CFLAGS  += -v
  35. DB_LDFLAGS += /v
  36.  
  37. # See if we modify anything in the lower levels.
  38. .IF $(OSENVIRONMENT) != $(NULL)
  39.    .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
  40. .END
  41.  
  42. C_s =
  43. C_m = -mm
  44. C_c = -mc
  45. C_l = -ml
  46.  
  47. S_s = -dmsmall
  48. S_m = -dmmedium
  49. S_c = -dmcompact
  50. S_l = -dmlarge
  51.