home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DMAKE37S.ZIP / DMAKE / OS2 / CONFIG.MK < prev    next >
Encoding:
Makefile  |  1991-03-27  |  1.5 KB  |  57 lines

  1. # This is an OS specific configuration file
  2. #    It assumes that OBJDIR, TARGET and DEBUG are previously defined.
  3. #    It defines    CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
  4. #    It augments    SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
  5. #
  6. OSRELEASE *= mscdos
  7. # Memory model to compile for
  8. # set to s - small, m - medium, c - compact, l - large
  9. .IF $(DEBUG)
  10.    MODEL = l
  11. .ELSE
  12.    MODEL = c
  13. .END
  14.  
  15. STARTUPFILE    = $(OS)/startup.mk
  16.  
  17. CPPFLAGS     = $(CFLAGS)
  18. LDOBJS        = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
  19. LDARGS        = @$(LDTMPOBJ),$(TARGET),NUL.MAP$(LDTAIL)
  20. LDTAIL        = ,@$(LDTMPLIB)$(LDFLAGS),$(OS)\$(TARGET:b).def
  21. LDTMPOBJ    = <+$(LDOBJS:s,/,\\,:t"+\n")+>
  22. LDTMPLIB    = <+$(LDLIBS:s,/,\\,:t"+\n")+>
  23.  
  24. # Debug flags
  25. DB_CFLAGS    = -DDBUG
  26. DB_LDFLAGS    = /ST:8000
  27. DB_LDLIBS    =
  28.  
  29. # NO Debug flags
  30. NDB_CFLAGS    = -B2 C2L -WX # -B3 C3L
  31. NDB_LDFLAGS    = /ST:8000
  32. NDB_LDLIBS    =
  33.  
  34. # Local configuration modifications for CFLAGS.
  35. CFLAGS         += -I$(OS) -DOS2
  36.  
  37. # OS2 does not have a swap version. The operating system will
  38. # handle all swapping.
  39. # To save copying unchanged files in from elsewhere, I shall use them in situ.
  40. OS_SRC  += ruletab.c runargv.c _chdir.c switchar.c
  41. DOS_SRC = dirbrk.c arlib.c
  42. UNIX_SRC = rmprq.c
  43.  
  44. SRC += $(OS_SRC) $(DOS_SRC) $(UNIX_SRC)
  45. .SETDIR=$(OS) : $(ASRC) $(OS_SRC)
  46. .SETDIR=msdos : $(DOS_SRC)
  47. .SETDIR=unix : $(UNIX_SRC)
  48.  
  49. # Set source dirs so that we can find files named in this
  50. # config file.
  51. .SOURCE.h : $(OS)
  52.  
  53. # See if we modify anything in the lower levels.
  54. .IF $(OSRELEASE) != $(NULL)
  55.    .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
  56. .END
  57.