source: trunk/make/setup.os2allalp.mk@ 10366

Last change on this file since 10366 was 10356, checked in by bird, 22 years ago

List macros expansion.

File size: 1.2 KB
Line 
1# $Id: setup.os2allalp.mk,v 1.4 2003-12-11 13:38:46 bird Exp $
2
3#
4# The tool(s)
5#
6AS = alp
7
8#
9# Options
10#
11!ifdef AS_MODE
12_AS_MODE =
13! if "$(AS_MODE)" == "ALP"
14_AS_MODE = -Sv:ALP
15! endif
16! if "$(AS_MODE)" == "M510"
17_AS_MODE = -Sv:M510
18! endif
19! if "$(AS_MODE)" == "M600"
20_AS_MODE = -Sv:M600
21! endif
22! if "$(_AS_MODE)" == ""
23! if [$(ECHO) $(CLRERR)Error: Bad AS_MODE ($(AS_MODE)). Valid modes are ALP, M510 and M600.$(CLRRST)]
24! endif
25! error
26! endif
27!else
28_AS_MODE = -Sv:ALP
29!endif
30
31_AS_DEBUG_TYPE = +Od:IBM32
32!ifdef AS_DEBUG_TYPE
33! if "$(AS_DEBUG_TYPE)" == "Codeview"
34_AS_DEBUG_TYPE = +Od:MS16
35! else
36! if "$(AS_DEBUG_TYPE)" != "HLL"
37! if [$(ECHO) $(CLRERR)Error: Bad AS_DEBUG_TYPE ($(AS_DEBUG_TYPE)). Valid types are Codeview and HLL.$(CLRRST)]
38! endif
39! error
40! endif
41! endif
42!endif
43
44_AS_OPTIONAL = $(_AS_MODE) $(_AS_DEBUG_TYPE)
45
46
47#
48# The flags
49#
50AS_FLAGS = -D:OS2 \
51!if "$(BUILD_MODE)" != "RELEASE"
52 -D:DEBUG \
53!endif
54 -Mb $(_AS_OPTIONAL) \
55 $(BUILD_DEFINES:-D=-D:) $(ALL_DEFINES:-D=-D:) $(AS_DEFINES:-D=-D:)\
56 $(AS_INCLUDES:-I=-i:) $(ALL_INCLUDES:-I=-i:) -i:$(PATH_INCLUDES)
57AS_FLAGS_SYS= $(AS_FLAGS) -D:RING0
58AS_OBJ_OUT = -Fo:
59AS_LST_OUT = +Lm -Fl:
60
Note: See TracBrowser for help on using the repository browser.