source: trunk/ports-make/gnugccomf.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: 918 bytes
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
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 -Zomf
14ifeq (RELEASE,$(BUILD_MODE))
15CFLAGS += -O3 -fno-omit-frame-pointer
16else
17ifndef NO_DEBUG
18CFLAGS += -DDEBUG=1
19endif
20endif
21
22CXXFLAGS = $(CFLAGS)
23
24LDFLAGS = -Zomf -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 = emxomfar
36RANLIB = echo
37# make sure we really use these tools!
38DO_MAKE_SET_ARCHIVERS = 1
39
40## include all the rules.
41include $(pm_topdir)/ports-make/rules.gmk
42
43
Note: See TracBrowser for help on using the repository browser.