| Line | |
|---|
| 1 | # $Id: gnugccaout.gmk,v 1.8 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 AOUT 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 -Zaout
|
|---|
| 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 = -Zaout -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 = ar
|
|---|
| 36 | RANLIB = ranlib
|
|---|
| 37 |
|
|---|
| 38 | ## include all the rules.
|
|---|
| 39 | include $(pm_topdir)/ports-make/rules.gmk
|
|---|
| 40 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.