Changeset 566 for trunk/src/emx/Makefile


Ignore:
Timestamp:
Aug 10, 2003, 5:24:21 PM (22 years ago)
Author:
zap
Message:

Fixed conflicts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/Makefile

    • Property cvs2svn:cvs-rev changed from 1.31 to 1.32
    r565 r566  
    1515#
    1616# For a brief description of how build system works please read build.txt
     17#
     18# Bootstrapping sequence using EMX gcc compiler:
     19#
     20# 1. Backup include/ctype.h and rename include/ctype.h-bootstrap to
     21#    include/ctype.h
     22# 2. Run 'make os2', put the resulting library os2.a to emx/lib as _os2.a,
     23#    and convert it to .lib with emxomf: 'emxomf _os2.a'
     24# 3. Now compile everything you wish this way: 'make LIBS=-l_os2'
     25#
    1726
    1827# Build type control variables. You can set them right from command line,
     
    6776CC = gcc -c -Zmt
    6877# The C compiler flags
    69 CFLAGS.INC  = -Iinclude -Isrc/include
     78CFLAGS.INC  += -Iinclude -Isrc/include
    7079CFLAGS      = -Wall -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND)
    7180# The additional C compiler flags for different build modes
     
    8695LD = gcc
    8796# Linker flags
    88 LDFLAGS     = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND) -Zmap -Zstack 1024
     97LDFLAGS     = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND) -Zmap -Zstack 1024 $(LIBS)
    8998LDFLAGS.DLL = $(LDFLAGS) -Zdll
    9099# Linker flags for different build modes
     
    167176EMXOMF = `test -f '$.$(TOOLFMT)/emxomf$E' && echo '$.$(TOOLFMT)/'`emxomf$E
    168177DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $(if $<,$<, $(subst /omf/,/aout/,$(@:.obj=.o)) )
     178
     179# How to copy some file to installation directory
     180# In optimize mode we have to strip the libraries after copying
     181INSTALL=$(call CP,$1,$2)
     182ifeq ($(MODE),opt)
     183INSTALL += $(if $(filter-out %.a,$2),$(NL)strip --strip-debug $2)
     184INSTALL += $(if $(filter-out %.lib,$2),$(NL)emxomf -s $2)
     185endif
    169186
    170187# How to filter just the object files from $^
Note: See TracChangeset for help on using the changeset viewer.