| Line | |
|---|
| 1 | # $Id: gnugccomf.gmk,v 1.9 2004/09/28 01:53:03 bird Exp $
|
|---|
| 2 |
|
|---|
| 3 | # generic file for doing a gcc 3.2.2 or later build of something
|
|---|
| 4 | # using OMF as object format.
|
|---|
| 5 |
|
|---|
| 6 | ## setup default rules
|
|---|
| 7 | include $(pm_topdir)/ports-make/rules.def.gmk
|
|---|
| 8 |
|
|---|
| 9 | ## include common stuff
|
|---|
| 10 | include $(pm_topdir)/ports-make/common.gmk
|
|---|
| 11 |
|
|---|
| 12 | ## define the gcc+omf flags and tools
|
|---|
| 13 | CFLAGS = -g -Zomf
|
|---|
| 14 | ifeq (RELEASE,$(BUILD_MODE))
|
|---|
| 15 | CFLAGS += -O3 -fno-omit-frame-pointer
|
|---|
| 16 | else
|
|---|
| 17 | ifndef NO_DEBUG
|
|---|
| 18 | CFLAGS += -DDEBUG=1
|
|---|
| 19 | endif
|
|---|
| 20 | endif
|
|---|
| 21 |
|
|---|
| 22 | CXXFLAGS = $(CFLAGS)
|
|---|
| 23 |
|
|---|
| 24 | LDFLAGS = -Zomf -Zmap -Zstack 1024 -Zhigh-mem
|
|---|
| 25 | ifeq (RELEASE,$(BUILD_MODE))
|
|---|
| 26 | LDFLAGS += -s
|
|---|
| 27 | else
|
|---|
| 28 | LDFLAGS += -g
|
|---|
| 29 | endif
|
|---|
| 30 | ifndef NO_HIGHMEM
|
|---|
| 31 | LDFLAGS += -Zhigh-mem
|
|---|
| 32 | endif
|
|---|
| 33 | LT_OS2_LDFLAGS = $(LDFLAGS)
|
|---|
| 34 |
|
|---|
| 35 | AR = emxomfar
|
|---|
| 36 | RANLIB = echo
|
|---|
| 37 | # make sure we really use these tools!
|
|---|
| 38 | DO_MAKE_SET_ARCHIVERS = 1
|
|---|
| 39 |
|
|---|
| 40 | ## include all the rules.
|
|---|
| 41 | include $(pm_topdir)/ports-make/rules.gmk
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.