| 1 | # $Id: odin32.rel.vac3.mk,v 1.14 2003-02-28 10:28:11 sandervl Exp $
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # Odin32 API
|
|---|
| 5 | #
|
|---|
| 6 | # RELEASE makefile for the VAC3 compiler environment.
|
|---|
| 7 | #
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | #
|
|---|
| 11 | # Library macros.
|
|---|
| 12 | #
|
|---|
| 13 | SOMLIB = somtk.lib
|
|---|
| 14 | RTLLIB = cppom30.lib
|
|---|
| 15 | RTLLIB_O = cppom30o.lib
|
|---|
| 16 | RTLLIB_NRE = cppon30.lib
|
|---|
| 17 | DLLENTRY = $(ODIN32_LIB)\dllentry.obj
|
|---|
| 18 | ODINCRT = odincrt
|
|---|
| 19 | LIB_DEMANGLE = demangl.lib
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | #
|
|---|
| 23 | # Tools
|
|---|
| 24 | #
|
|---|
| 25 | CC = icc
|
|---|
| 26 | AS = alp
|
|---|
| 27 | CXX = icc
|
|---|
| 28 | LD = icc
|
|---|
| 29 | LD2 = $(EXECEXCL) $(ODIN32_TOOLS)\ilink.lock.lnk ilink
|
|---|
| 30 | IMPLIB = implib
|
|---|
| 31 | ILIB = ilib
|
|---|
| 32 | RC = $(ODIN32_TOOLS)\wrc
|
|---|
| 33 | OS2RC = rc
|
|---|
| 34 |
|
|---|
| 35 | !ifdef EXETARGET
|
|---|
| 36 | STATIC_CRT=1
|
|---|
| 37 | !endif
|
|---|
| 38 |
|
|---|
| 39 | #
|
|---|
| 40 | # Tool Flags
|
|---|
| 41 | #
|
|---|
| 42 | ASFLAGS = -Mb -Sc -Sv:ALP +Od
|
|---|
| 43 | IMPLIBFLAGS = /nologo
|
|---|
| 44 | ILIBFLAGS = /quiet /nologo /noignorecase
|
|---|
| 45 | RCFLAGS = -s -I. -I$(CPPMAIN)\include -D__WIN32OS2__
|
|---|
| 46 | !ifdef WRC_PREFIX_RESOURCE
|
|---|
| 47 | RCFLAGS = $(RCFLAGS) -p $(TARGET)
|
|---|
| 48 | !endif
|
|---|
| 49 | OS2RCFLAGS = -r -n
|
|---|
| 50 | OS2RCLFLAGS = -x2 -n
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | #
|
|---|
| 54 | # C Compiler flags.
|
|---|
| 55 | # This may look a bit like a mess but, there is usually a reason behind
|
|---|
| 56 | # every line and the way it is done. We have some problems with nmake
|
|---|
| 57 | # when we add new flags to for example CXXFLAGS too many times.
|
|---|
| 58 | #
|
|---|
| 59 | !ifdef PROFILEHOOKS
|
|---|
| 60 | PROFILEFLAGS=-Gh+
|
|---|
| 61 | !endif
|
|---|
| 62 | !ifdef EXETARGET
|
|---|
| 63 | CTARGETFLAGS = -Ge+
|
|---|
| 64 | CXXTARGETFLAGS = -Ge+
|
|---|
| 65 | !else
|
|---|
| 66 | CTARGETFLAGS = -Ge-
|
|---|
| 67 | CXXTARGETFLAGS = -Ge-
|
|---|
| 68 | !endif
|
|---|
| 69 | CXXEXCEPTIONS = -Gx-
|
|---|
| 70 | CFLAGS = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CTARGETFLAGS)
|
|---|
| 71 | CXXFLAGS = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CXXTARGETFLAGS) /Gx+
|
|---|
| 72 | CXXFLAGS_ODINCRT = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn- $(PROFILEFLAGS) $(CXXTARGETFLAGS) /Gx+
|
|---|
| 73 | CFLAGS_WIN32APP = -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CTARGETFLAGS)
|
|---|
| 74 | CXXFLAGS_WIN32APP= -c -Q -Si -Ti+ -G5 -O+ -Oi+ -Ss+ -W3 -Gm+ /Gn+ $(PROFILEFLAGS) $(CXXTARGETFLAGS)
|
|---|
| 75 | !ifndef STATIC_CRT
|
|---|
| 76 | CINCLUDES = -I$(ODIN32_INCLUDE)\incl_vac -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
|---|
| 77 | !else
|
|---|
| 78 | CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
|---|
| 79 | !endif
|
|---|
| 80 | CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
|
|---|
| 81 | CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
|
|---|
| 82 | CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 | #
|
|---|
| 86 | # Linker flags.
|
|---|
| 87 | # This may look a bit like a mess but, there is usually a reason behind
|
|---|
| 88 | # every line and the way it is done. We have some problems with nmake
|
|---|
| 89 | # when we add new flags to for example LD2FLAGS too many times.
|
|---|
| 90 | #
|
|---|
| 91 | !ifdef EXETARGET
|
|---|
| 92 | !ifndef STACKSIZE
|
|---|
| 93 | STACKSIZE = 0x50000
|
|---|
| 94 | !endif
|
|---|
| 95 |
|
|---|
| 96 | ! ifdef VIO
|
|---|
| 97 | LDTARGETFLAGS = -Ge+ -B"/pmtype:vio /stack:$(STACKSIZE)"
|
|---|
| 98 | LD2TARGETFLAGS = /EXEC /pmtype:vio /stack:$(STACKSIZE)
|
|---|
| 99 | ! else
|
|---|
| 100 | LDTARGETFLAGS = -Ge+ -B"/pmtype:pm /stack:$(STACKSIZE)"
|
|---|
| 101 | LD2TARGETFLAGS = /EXEC /pmtype:pm /stack:$(STACKSIZE)
|
|---|
| 102 | ! endif
|
|---|
| 103 | !else
|
|---|
| 104 | LDTARGETFLAGS = -Ge-
|
|---|
| 105 | LD2TARGETFLAGS = /DLL
|
|---|
| 106 | !endif
|
|---|
| 107 | LDFLAGS = -Q /B"/noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nod" $(LDTARGETFLAGS) -Si -G5 -O+ -W3 -Gm+
|
|---|
| 108 | LDFLAGS_ODINCRT = -Q /B"/noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug" $(LDTARGETFLAGS) -Si -G5 -O+ -W3 -Gm+
|
|---|
| 109 | LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug /nod $(LD2TARGETFLAGS)
|
|---|
| 110 | LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /linenumbers /nodebug $(LD2TARGETFLAGS)
|
|---|
| 111 |
|
|---|