source: trunk/ports-make/gnugccaout.gmk@ 3669

Last change on this file since 3669 was 2549, checked in by bird, 20 years ago

my good old ports stuff.

File size: 847 bytes
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
7include $(pm_topdir)/ports-make/rules.def.gmk
8
9## include common stuff
10include $(pm_topdir)/ports-make/common.gmk
11
12## define the gcc+omf flags and tools
13CFLAGS = -g -Zaout
14ifeq (RELEASE,$(BUILD_MODE))
15CFLAGS += -O3 -fno-omit-frame-pointer
16else
17ifndef NO_DEBUG
18CFLAGS += -DDEBUG=1
19endif
20endif
21
22CXXFLAGS = $(CFLAGS)
23
24LDFLAGS = -Zaout -Zmap -Zstack 1024 -Zhigh-mem
25ifeq (RELEASE,$(BUILD_MODE))
26LDFLAGS += -s
27else
28LDFLAGS += -g
29endif
30ifndef NO_HIGHMEM
31LDFLAGS += -Zhigh-mem
32endif
33LT_OS2_LDFLAGS = $(LDFLAGS)
34
35AR = ar
36RANLIB = ranlib
37
38## include all the rules.
39include $(pm_topdir)/ports-make/rules.gmk
40
Note: See TracBrowser for help on using the repository browser.