home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / emx / dmake.ini < prev    next >
Text File  |  1994-11-01  |  3KB  |  144 lines

  1. # Disable warnings for macros redefined here that were given
  2. # on the command line.
  3. __.SILENT := $(.SILENT)
  4. .SILENT   := yes
  5.  
  6. # Configuration parameters for DMAKE startup.mk file
  7. # Set these to NON-NULL if you wish to turn the parameter on.
  8. _HAVE_RCS    := yes        # yes => RCS  is installed.
  9. _HAVE_SCCS    :=         # yes => SCCS is installed.
  10.  
  11. # Applicable suffix definitions
  12. A := .a        # Libraries
  13. E := .exe    # Executables
  14. O := .o        # Objects
  15. S := .s        # Assembler sources
  16.  
  17. # See if these are defined
  18. .IMPORT .IGNORE : COMSPEC TMPDIR SHELL
  19.  
  20. # Recipe execution configurations
  21. SHELL      := $(COMSPEC)
  22. SHELLFLAGS := /c
  23. SHELLMETAS := *"?<>|%][
  24.  
  25. # Group recipes always with Bourne shell
  26. GROUPSHELL  := sh
  27. GROUPFLAGS  :=
  28. GROUPSUFFIX := .sh
  29.  
  30. # Standard C-language command names and flags
  31. # optimize:
  32.    CC      := gcc        # C-compiler and flags
  33.    CFLAGS   =
  34.  
  35.    AS       = $(CC)        # Assembler and flags
  36.    ASFLAGS  =
  37.  
  38.    LD       = $(CC)        # Loader and flags
  39.    LDFLAGS  =
  40.    LDLIBS   =
  41.  
  42.    RC       = rc        # Ressource compiler
  43.  
  44. # Definition of $(MAKE) macro for recursive makes.
  45.    MAKE       = $(MAKECMD) $(MFLAGS)
  46.  
  47. # Language and Parser generation Tools and their flags
  48.    YACC      := bison        # standard yacc
  49.    YFLAGS  = -y
  50.    YTAB      := y_tab        # yacc output files name stem.
  51.  
  52.    LEX      := flex        # standard lex
  53.    LFLAGS  =
  54.    LEXYY  := lexyy        # lex output file
  55.  
  56. # Other Compilers, Tools and their flags
  57.    CO       := co        # check out for RCS
  58.    COFLAGS := -q
  59.  
  60.    AR      := ar        # archiver
  61.    ARFLAGS = u
  62.  
  63.    RM       := rm        # remove a file command
  64.    RMFLAGS  = -c -
  65.  
  66. # Implicit generation rules for making inferences.
  67. # We don't provide .yr or .ye rules here.  They're obsolete.
  68. # Rules for making *$O
  69.    %$O : %.cc  ; $(CC) -c -o $@ $(CFLAGS)  $<
  70.    %$O : %.c   ; $(CC) -c -o $@ $(CFLAGS)  $<
  71.    %$O : %$S   ; $(CC) -c -o $@ $(ASFLAGS) $<
  72.  
  73. # Ressource files
  74.    %.res : %.rc ; $(RC) -r $< $@
  75.  
  76. # Executables
  77.    %$E : %$O ;
  78.     $(CC) -o $@ $(LDFLAGS) $< $(LDLIBS)
  79.  
  80. # lex and yacc rules
  81.    %.c : %.y 
  82.     $(YACC)  $(YFLAGS) $<
  83.     mv $(YTAB).c $@
  84.    %.cc : %.l
  85.     $(LEX)   $(LFLAGS) $<
  86.     mv $(LEXYY).c $@
  87.    %.c : %.l
  88.     $(LEX)   $(LFLAGS) $<
  89.     mv $(LEXYY).c $@
  90.    %.pc : %.py 
  91.     $(YACC)  $(YFLAGS) $<
  92.     mv $(YTAB).c $@
  93.  
  94. # RCS support
  95. .IF $(_HAVE_RCS)
  96.    % : $$(@:d)RCS.DIR/$$(@:f),v ; $(CO) $(COFLAGS) $@ $(@:d)RCS.DIR/$(@:f),v
  97.    .NOINFER : $$(@:d)RCS.DIR/$$(@:f),v
  98.  
  99.    % : $$(@:d)RCS.DIR/$$(@:f) ; $(CO) $(COFLAGS) $@ $(@:d)RCS.DIR/$(@:f)
  100.    .NOINFER : $$(@:d)RCS.DIR/$$(@:f)
  101.  
  102.    % : %,v ; $(CO) $(COFLAGS) $@ %,v
  103.    .NOINFER : %,v
  104. .END
  105.  
  106. # SCCS support
  107. .IF $(_HAVE_SCCS)
  108.    % : s.% ; get $@
  109.    .NOINFER : s.%
  110. .END
  111.  
  112. # Recipe to make archive files.
  113.   %$A : ; $(AR) $(ARFLAGS) $@ $? $(AR) s $@
  114.  
  115. # DMAKE uses this recipe to remove intermediate targets
  116. .REMOVE : ; $(RM) $(RMFLAGS) $<
  117.  
  118. # AUGMAKE extensions for SYSV compatibility
  119. "@B" = $(@:b)
  120. "@D" = $(@:d)
  121. "@F" = $(@:f)
  122. "*B" = $(*:b)
  123. "*D" = $(*:d)
  124. "*F" = $(*:f)
  125. "<B" = $(<:b)
  126. "<D" = $(<:d)
  127. "<F" = $(<:f)
  128. "?B" = $(?:b)
  129. "?F" = $(?:f)
  130. "?D" = $(?:d)
  131.  
  132. # Turn warnings back to previous setting.
  133. .SILENT := $(__.SILENT)
  134.  
  135. # Local init file if any, gets parsed before user makefile
  136. .INCLUDE .IGNORE: "_startup.mk"
  137.  
  138. ##########################################################
  139.  
  140. .IF $O == .obj
  141.   CFLAGS += -Zomf
  142.   LDFLAGS += -Zomf
  143. .END
  144.