Changeset 260


Ignore:
Timestamp:
May 28, 2003, 6:14:25 PM (22 years ago)
Author:
bird
Message:

Fixed emxomf problem once and for all. ASM too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/Makefile

    • Property cvs2svn:cvs-rev changed from 1.18 to 1.19
    r259 r260  
    8989
    9090# emxbind tool
    91 #EMXBIND = $(call FINDTOOL,emxbind)
    9291EMXBIND = $.$(TOOLFMT)/emxbind$E
    9392# emxbind flags
     
    9998
    10099# The macro assembler
     100ifdef PATH_TOP
     101ASM = $(PATH_TOP)/tools/x86.os2/masm/v6.0/binp/ml.exe -c
     102else
    101103ASM = ml -c
     104endif
    102105ASMFLAGS = -Cp -W3 -WX -VM -nologo
    103106# How to compile an .asm file
     
    112115# removing unused stuff (like empty lines and comments)
    113116# and sorting alphabetically (looks nicer).
    114 #EMXEXP = $(call FINDTOOL,emxexp)
    115117EMXEXP = $.$(TOOLFMT)/emxexp$E
    116118EMXEXPFLAGS = -u
     
    118120
    119121# The tool to create import libraries
    120 #IMPLIB = $(call FINDTOOL,emximp)
    121122IMPLIB = $.$(TOOLFMT)/emximp$E
    122123IMPLIBFLAGS.prof = -m
     
    132133
    133134# How to convert an a.out file to the OMF format
    134 # We must use FINDTOOL here 'cause of the two libs which emxomf depends on
    135 EMXOMF = $(call FINDTOOL,emxomf)
     135#   Emxomf depends on two libs, we have to detect wethere or not emxomf is built
     136#   or not. Unfortunately make isn't up to the job of figuring this out, so we
     137#       must use the shell.
     138EMXOMF = `test -f '$.$(TOOLFMT)/emxomf$E' && echo '$.$(TOOLFMT)/'`emxomf$E
    136139DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $<
    137140
     
    144147# How to filter the libraries from $^
    145148^LIB = $(strip $(filter %.a,$^) $(filter %.lib,$^))
    146 # This function finds a tool: if it has been already built, prefer it
    147 FINDTOOL = $(firstword $(wildcard $.$(TOOLFMT)/$1$E) $(wildcard $(OUT)dbg/aout/$1$E) $1$E)
    148149
    149150# A newline
Note: See TracChangeset for help on using the changeset viewer.