Changeset 894 for trunk/src


Ignore:
Timestamp:
Dec 13, 2003, 6:33:06 PM (22 years ago)
Author:
bird
Message:

Converted to make 3.80+, no need to generate makefiles.

Location:
trunk/src/emx
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/Makefile

    • Property cvs2svn:cvs-rev changed from 1.38 to 1.39
    r893 r894  
    3939ifndef MAKEFILE
    4040MAKEFILE = Makefile     
    41 endif
    42 # name of the generated makefile
    43 ifndef GENRULES
    44 GENRULES = $.genrules.smak
    4541endif
    4642
     
    269265endif
    270266
     267# include template rules
     268include templates.smak
     269
    271270# Include all submakefiles
    272271-include $(SUBMAK)
     
    321320# bird: add rule for forcibly re-generating the rules.
    322321rules:
    323         @$(call RM,$(GENRULES))
    324         $(MAKE) -f $(MAKEFILE) $(GENRULES)
    325 
    326 $(GENRULES): $(SUBMAK) # $(MAKEFILE) $(wildcard *.smak)
    327         @$(call MKDIR,$.)
    328         @$(call ECHO,Please wait, rebuilding make rules ...)
    329         @$(call RM,$@)
    330         @$(call FECHO,$@,# Autogenerated file -- DO NOT EDIT!)
    331         @$(subst _@,$@,$(RULES))
     322        @$(call ECHO,smak don't generate rules anylonger!)
    332323
    333324# The general a.out -> OMF conversion rule for object files
     
    339330        $(call DO.EMXOMF)
    340331
    341 -include $(GENRULES)
  • trunk/src/emx/common.smak

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r893 r894  
    8686
    8787# Generate compilation rules for C files
    88 RULES += $(foreach x,$(filter %.c,$(.TSRC)),\
    89         $(call FECHO,_@,$$.$(call OBJFILE,$x): $x)$(NL)\
    90         $(call FECHO,_@,        $$(call DO.COMPILE.c,$(.TCF) $(.TCF.$x)))$(NL)\
    91 )
     88$(foreach x,$(filter %.c,$(.TSRC)), $(eval $(call def_compile_c,$(x))))
    9289
    9390# Generate compilation rules for S files
    94 RULES += $(foreach x,$(filter %.s,$(.TSRC)),\
    95         $(call FECHO,_@,$$.$(call OBJFILE,$x): $x)$(NL)\
    96         $(call FECHO,_@,        $$(call DO.COMPILE.s,$(.TSF) $(.TSF.$x)))$(NL)\
    97 )
     91$(foreach x,$(filter %.s,$(.TSRC)), $(eval $(call def_compile_S,$(x))))
    9892
    9993# Generate compilation rules for asm files
    100 RULES += $(foreach x,$(filter %.asm,$(.TSRC)),\
    101         $(call FECHO,_@,$$.$(call OBJFILE,$x): $x)$(NL)\
    102         $(call FECHO,_@,        $$(call DO.COMPILE.asm,$(.TAF) $(.TAF.$x)))$(NL)\
    103 )
     94$(foreach x,$(filter %.asm,$(.TSRC)), $(eval $(call def_compile_asm,$(x))))
    10495
    10596endif # def .TSRC
  • trunk/src/emx/mkdll.smak

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r893 r894  
    88
    99# Linking rule
    10 RULES += \
    11         $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS) $(.TDEF))$(NL)\
    12         $(call FECHO,_@,        $$(call DO.LINK.dll,$(.TLDF)))$(NL)
     10$(eval $(call def_link_dll))
    1311
    1412# Add unstripped copy.                                 
  • trunk/src/emx/mkexe.smak

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r893 r894  
    88
    99# Linking rule
    10 RULES += \
    11         $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS))$(NL)\
    12         $(call FECHO,_@,        $$(call DO.LINK.exe,$(.TLDF)))$(NL)
     10$(eval $(call def_link_exe))
    1311
    1412# Add unstripped copy.                                 
  • trunk/src/emx/mkimplib.smak

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r893 r894  
    1212#endif
    1313#endif
    14                    
     14               
    1515include common.smak
    1616
    1717libs: $(.MODULE)
    1818
    19 # The rule for building an archive
    20 RULES += \
    21         $(call FECHO,_@,$$.$(.TARG): $(.IMPS) $(.OBJS) $(.DEPS))$(NL) \
    22         $(call FECHO,_@,        $$(call DO.IMPLIB))$(NL)
     19# The rule for building an archive with imports
     20$(eval $(call def_implib))
    2321
    2422## Rule for stripping debug info.
     
    3331#       $(call CP,$<,$@)
    3432#endif 
    35                                                                    
     33                                                               
    3634include mkomflib.smak
    3735include comend.smak
    38 .NOINST := 
     36.NOINST :=
  • trunk/src/emx/mklib.smak

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r893 r894  
    1717
    1818# The rule for building an archive
    19 RULES += \
    20         $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS))$(NL)\
    21         $(call FECHO,_@,        $$(DO.LIBRARY))$(NL)
     19$(eval $(call def_lib))
    2220
    2321# Rule for stripping debug info.
  • trunk/src/emx/version.smak

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.11
    r893 r894  
    1515
    1616# The flag for C compiler to pass the VERSION macro to preprocessor
    17 CFLAGS.DEF.VERSION = -DVERSION=\\\"$(VERSION)\\\"
     17CFLAGS.DEF.VERSION = -DVERSION=\"$(VERSION)\"
    1818
    1919# INNOTEK_VERSION is normally defined in the environment by a toplevel makefile.
     
    2121export INNOTEK_VERSION        ?= (Innotek Build $(shell date '+%Y-%m-%d %H:%M'))
    2222endif
    23 CFLAGS.DEF.VERSION += '-DINNOTEK_VERSION=\" $(INNOTEK_VERSION)\"'
     23CFLAGS.DEF.VERSION += '-DINNOTEK_VERSION=" $(INNOTEK_VERSION)"'
    2424
    2525# Copyright
Note: See TracChangeset for help on using the changeset viewer.