home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / emx / config.mk < prev    next >
Makefile  |  1994-11-02  |  1KB  |  44 lines

  1. # This is the MSC 4.0 and higher OS/2 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. STARTUPFILE    = $(OS)\startup.mk
  10. CPPFLAGS     = $(CFLAGS)
  11. LDOBJS        = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
  12. LDARGS        = $(LDFLAGS) -o $@ $(LDOBJS) $(LDLIBS)
  13.  
  14. # Definition of macros for library, and C startup code.
  15.  
  16. # Debug flags
  17. DB_CFLAGS    = -g -DDBUG
  18. DB_LDFLAGS    = -g
  19. DB_LDLIBS    =
  20.  
  21. # NO Debug flags
  22. NDB_CFLAGS    = -Zmtd -O
  23. NDB_LDFLAGS    = -Zmtd
  24. NDB_LDLIBS    =
  25.  
  26. # Local configuration modifications for CFLAGS
  27. # -- undef __GNUC__: fake dmake.c to use the ANSI varargs code --
  28. CC = gcc
  29. CFLAGS += -I$(OS) -DOS2 -U__GNUC__
  30.  
  31. # Sources that must be defined for each different version
  32. OSSRC := arlib.c dirbrk.c rmprq.c ruletab.c runargv.c dcache.c
  33. SRC  += $(OSSRC)
  34. .SETDIR=$(OS) : $(OSSRC)
  35.  
  36. # Set source dirs so that we can find files named in this
  37. # config file.
  38. .SOURCE.h : $(OS)
  39.  
  40. # See if we modify anything in the lower levels.
  41. .IF $(OSENVIRONMENT) != $(NULL)
  42.    .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
  43. .END
  44.