Changeset 204


Ignore:
Timestamp:
May 20, 2003, 4:47:45 PM (22 years ago)
Author:
bird
Message:

Added a bunch of <sometool>.BUILT macros which we can .MDEP on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/Makefile

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.11
    r203 r204  
    8282DO.LINK.dll = $(LD) $(strip $(LDFLAGS.DLL) $(filter-out -l%,$1)) -o $@ $(^O) $(^DEF) $(^LIB) $(filter -l%,$1)
    8383
    84 # emxbind tool
    85 EMXBIND = $(if $(wildcard $./$(TOOLFMT)/emxbind$E),$.$(TOOLFMT)/)emxbind$E
     84# emxbind tool - you can depend on EMXBIND.BUILT :-)
     85EMXBIND = $(if $(wildcard $(EMXBIND.BUILT)),$(EMXBIND.BUILT),emxbind$E)
     86EMXBIND.BUILT = $.$(TOOLFMT)/emxbind$E
    8687# emxbind flags
    8788EMXBINDFLAGS = -q $(EMXBINDFLAGS.$(MODE))
     
    103104
    104105# The tool to extract exports from object files and archives
    105 EMXEXP = $(if $(wildcard $./$(TOOLFMT)/emxexp$E),$.$(TOOLFMT)/)emxexp$E
     106EMXEXP = $(if $(wildcard $(EMXEXP.BUILT)),$(EMXEXP.BUILT),emxexp$E)
     107EMXEXP.BUILT = $./$(TOOLFMT)/emxexp$E
    106108
    107109# The tool to create import libraries
    108 IMPLIB = $(if $(wildcard $./$(TOOLFMT)/emximp$E),$.$(TOOLFMT)/)emximp$E
     110IMPLIB = $(if $(wildcard $(IMPLIB.BUILT)),$(IMPLIB.BUILT),emximp$E)
     111IMPLIB.BUILT = $./$(TOOLFMT)/emximp$E
    109112IMPLIBFLAGS.prof = -m
    110113IMPLIBFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(IMPLIBFLAGS.$x))
     
    119122
    120123# How to convert an a.out file to the OMF format
    121 # bird: use the one we build for explicit emxomf conversions.
    122 # todo: make sure emxomf is build first.
    123 #DO.AOUT2OMF = emxomf $(strip $1 -o) $@ $<
    124 DO.AOUT2OMF = $(if $(wildcard $./$(TOOLFMT)/emxomf$E),$.$(TOOLFMT)/)emxomf$E  $(strip $1 -o) $@ $<
     124EMXOMF = $(if $(wildcard $(EMXOMF.BUILT)),$(EMXOMF.BUILT),emxomf$E)
     125EMXOMF.BUILT = $./$(TOOLFMT)/emxomf$E
     126DO.AOUT2OMF = $(EMXOMF) $(strip $1 -o) $@ $<
    125127
    126128# How to filter just the object files from $^
Note: See TracChangeset for help on using the changeset viewer.