Changeset 3902
- Timestamp:
- Oct 23, 2014, 10:17:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/templates.smak
r3057 r3902 40 40 define def_lib_ar 41 41 $$.$(.TARG): $(.OBJS) $(.DEPS) 42 ifdef KMK_VERSION 43 @kmk_builtin_append -tn $$@.ar-script \ 44 "CREATE $$(@F)" \ 45 $(foreach x, $(filter %.o, $(sort $(.OBJS) $(.DEPS))), "ADDMOD $(x)") \ 46 "SAVE" \ 47 "END" 48 else 42 49 echo "CREATE $$(@F)" > $$@.ar-script 43 50 $(foreach x, $(filter %.o, $(sort $(.OBJS) $(.DEPS))), $(call def_lib_ar_addmod)) 44 51 echo "SAVE" >> $$@.ar-script 45 52 echo "END" >> $$@.ar-script 53 endif 46 54 rm -f $$(@F) $$@ 47 55 ar -M < $$@.ar-script … … 51 59 52 60 # defined used by def_lib_ar to add a module to the script file. (blank line is imporant!) 53 ifdef KMK_VERSION54 define def_lib_ar_addmod55 @kmk_builtin_append $$@.ar-script "ADDMOD $(x)"56 57 endef58 else59 61 define def_lib_ar_addmod 60 62 echo "ADDMOD $(x)" >> $$@.ar-script 61 63 62 64 endef 63 endif64 65 65 66 # The rule for building an archive with imports
Note:
See TracChangeset
for help on using the changeset viewer.