330 lines
6.8 KiB
Makefile
330 lines
6.8 KiB
Makefile
#*******************************************************************
|
|
#*
|
|
#* $Workfile: os2.mk $
|
|
#*
|
|
#* Beschreibung Compiler und Systemabhaengige
|
|
#* Entwicklungtools-Definitionen
|
|
#* Enstellungen fuer OS2 Environment
|
|
#*
|
|
#* Ersterstellung MH 9.2.96
|
|
#* Letzte Aenderung $Author: hr $ $Date: 2000-09-20 14:43:16 $
|
|
#* $Revision: 1.1.1.1 $
|
|
#*
|
|
#* $Logfile: T:/solar/inc/os2.mkv $
|
|
#*
|
|
#* Copyright (c) 1990-1995, STAR DIVISION
|
|
#*
|
|
#*******************************************************************
|
|
|
|
# --- OS2-Environment ----------------------------------------------
|
|
|
|
.IF "$(GUI)" == "OS2"
|
|
|
|
.IF "$(NOSOLAR_JAVA)"==""
|
|
SOLAR_JAVA=TRUE
|
|
.ENDIF
|
|
.IF "$(SOLAR_JAVA)"!=""
|
|
JAVADEF=-DSOLAR_JAVA
|
|
.ENDIF
|
|
JAVAFLAGSDEBUG=-g
|
|
|
|
# --- Borland ---
|
|
.IF "$(COM)" == "BLC"
|
|
|
|
JAVADEF=-DSOLAR_JAVA
|
|
|
|
ASM=tasm
|
|
AFLAGS=
|
|
|
|
CC=bcc
|
|
CFLAGS=-c -3 -a1 -X -d -wbbf -weas -wucp -w-hid -w-par -I. $(MINUS_I)$(INCLUDE)
|
|
CFLAGSCXX=-Pcxx -RT- -x- -V
|
|
CFLAGSOBJGUIST=
|
|
CFLAGSOBJCUIST=
|
|
CFLAGSOBJGUIMT=-sm
|
|
CFLAGSOBJCUIMT=-sm
|
|
CFLAGSSLOGUIMT=-sm -sd
|
|
CFLAGSSLOCUIMT=-sm -sd
|
|
CFLAGSPROF=
|
|
CFLAGSDEBUG=-v
|
|
CFLAGSDBGUTIL=
|
|
CFLAGSOPT=-Os -Ob -k-
|
|
CFLAGSNOOPT=-Od
|
|
CFLAGSOUTOBJ=-o
|
|
|
|
LINK=tlink
|
|
LINKFLAGS=/m /L$(LIB)
|
|
#LINKFLAGSAPPGUI=/Toe /B:0x10000 /aa
|
|
#Base wg. lxopt raus
|
|
LINKFLAGSAPPGUI=/Toe /aa
|
|
LINKFLAGSSHLGUI=/Tod
|
|
LINKFLAGSAPPCUI=/Toe /B:0x10000 /ap
|
|
LINKFLAGSSHLCUI=/Tod
|
|
LINKFLAGSTACK=/S:
|
|
LINKFLAGSPROF=
|
|
LINKFLAGSDEBUG=/v
|
|
.IF "$(SOLAR_JAVA)"==""
|
|
LINKFLAGSOPT=/Oc
|
|
.ENDIF
|
|
|
|
STDOBJVCL=$(L)$/salmain.obj
|
|
STDOBJGUI=c02.obj
|
|
STDSLOGUI=c02d.obj
|
|
STDOBJCUI=c02.obj
|
|
STDSLOCUI=c02d.obj
|
|
STDLIBGUIST=c2.lib os2.lib
|
|
STDLIBCUIST=c2.lib os2.lib
|
|
STDLIBGUIMT=c2mt.lib os2.lib
|
|
STDLIBCUIMT=c2mt.lib os2.lib
|
|
STDSHLGUIMT=c2mt.lib os2.lib
|
|
STDSHLCUIMT=c2mt.lib os2.lib
|
|
|
|
LIBMGR=tlib
|
|
LIBFLAGS=/C /P128
|
|
|
|
IMPLIB=implib
|
|
IMPLIBFLAGS=/c
|
|
|
|
MAPSYM=
|
|
MAPSYMFLAGS=
|
|
|
|
RC=rc
|
|
RCFLAGS=-r $(RCFILES) $@
|
|
RCLINK=rc
|
|
RCLINKFLAGS=
|
|
RCSETVERSION=
|
|
|
|
DLLPOSTFIX=bo
|
|
|
|
.ENDIF
|
|
|
|
# --- IBM ---
|
|
.IF "$(COM)" == "ICC"
|
|
|
|
ASM=tasm
|
|
AFLAGS=/ml /oi
|
|
|
|
CC=icc
|
|
.IF "$(COMEX)"=="3"
|
|
CFLAGS=/C+ /Q+ /Gf+ /Sp1 /G4 /Se /Gs+ /Gt+ /Gd+ /J- /W2 /D__EXTENDED__ /Si+ /Xi+ $(MINUS_I)$(INCLUDE) /Wvft-
|
|
.ELSE
|
|
.IF "$(CO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too many segments ist /SEGMENTS:nnnn hilfreich. 3072 ist max!
|
|
.IF "$(CPPRTST)"!=""
|
|
LINKFLAGS=/NOFREE /NOD /NOE /NOI /MAP /OPTFUNC /PACKD:65536 /EXEPACK:2
|
|
.ELSE
|
|
LINKFLAGS=/NOFREE /NOD /NOE /NOI /MAP /OPTFUNC /PACKD:65536
|
|
.ENDIF
|
|
LINKFLAGSAPPGUI=/PM:PM /NOBASE
|
|
LINKFLAGSSHLGUI=
|
|
LINKFLAGSAPPCUI=/PM:VIO /NOBASE
|
|
LINKFLAGSSHLCUI=
|
|
LINKFLAGSTACK=/STACK:
|
|
LINKFLAGSPROF=
|
|
LINKFLAGSDEBUG=/COD
|
|
#LINKFLAGSOPT=/EXEPACK:2 /OPTFUNC
|
|
LINKFLAGSOPT=
|
|
#.IF "$(product)"!="full" && "$(product)"!="demo" && "$(product)"!="compact"
|
|
#LINKFLAGS=$(LINKFLAGS) /COD
|
|
#.ELSE
|
|
#LINKFLAGS=$(LINKFLAGS)
|
|
#.ENDIF
|
|
|
|
.IF "$(product)"=="full" || "$(product)"=="demo" || "$(product)"=="compact"
|
|
# LINKFLAGS=$(LINKFLAGS)
|
|
.ELSE
|
|
LINKFLAGS+=/COD
|
|
.ENDIF
|
|
|
|
STDOBJVCL=$(L)$/salmain.obj
|
|
STDOBJGUI=
|
|
STDSLOGUI=
|
|
STDOBJCUI=
|
|
STDSLOCUI=
|
|
.IF "$(COMEX)"=="3"
|
|
.IF "$(CPPRTST)"!=""
|
|
STDLIBGUIST=cppom30o.lib cpprtst.lib os2386.lib
|
|
STDLIBCUIST=cppom30o.lib cpprtst.lib os2386.lib
|
|
STDLIBGUIMT=cppom30o.lib cpprtst.lib os2386.lib
|
|
STDLIBCUIMT=cppom30o.lib cpprtst.lib os2386.lib
|
|
STDSHLGUIMT=cppom30o.lib cpprtst.lib os2386.lib
|
|
STDSHLCUIMT=cppom30o.lib cpprtst.lib os2386.lib
|
|
.ELSE
|
|
STDLIBGUIST=cppom30o.lib cppom30i.lib os2386.lib
|
|
STDLIBCUIST=cppom30o.lib cppom30i.lib os2386.lib
|
|
STDLIBGUIMT=cppom30o.lib cppom30i.lib os2386.lib
|
|
STDLIBCUIMT=cppom30o.lib cppom30i.lib os2386.lib
|
|
STDSHLGUIMT=cppom30o.lib cppom30i.lib os2386.lib
|
|
STDSHLCUIMT=cppom30o.lib cppom30i.lib os2386.lib
|
|
.ENDIF
|
|
.ELSE
|
|
STDLIBGUIST=dde4sbs.lib os2386.lib
|
|
STDLIBCUIST=dde4sbs.lib os2386.lib
|
|
STDLIBGUIMT=dde4mbs.lib os2386.lib
|
|
STDLIBCUIMT=dde4mbs.lib os2386.lib
|
|
STDSHLGUIMT=dde4mbs.lib os2386.lib
|
|
STDSHLCUIMT=dde4mbs.lib os2386.lib
|
|
.ENDIF
|
|
|
|
.IF "$(COMEX)"=="3"
|
|
LIBMGR=ilib
|
|
.ELSE
|
|
LIBMGR=lib
|
|
.ENDIF
|
|
LIBFLAGS=/NOI
|
|
|
|
IMPLIB=implib
|
|
IMPLIBFLAGS=/noi
|
|
|
|
MAPSYM=
|
|
MAPSYMFLAGS=
|
|
|
|
RC=rc
|
|
RCFLAGS=-r $(RCFILES) $@
|
|
RCLINK=rc
|
|
RCLINKFLAGS=
|
|
RCSETVERSION=
|
|
|
|
.IF "$(WORK_STAMP)"=="CVT364"
|
|
DLLPOSTFIX=dp
|
|
.ELSE
|
|
DLLPOSTFIX=co
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
# --- GNU ---
|
|
.IF "$(COM)" == "GCC"
|
|
|
|
.INCLUDE : os2gcci.mk
|
|
|
|
.ENDIF
|
|
|
|
# --- Watcom ---
|
|
.IF "$(COM)" == "WTC"
|
|
|
|
ASM=wasm
|
|
AFLAGS=/ml /4pr
|
|
|
|
CC=wcl386
|
|
.IF "$(e2p)" != ""
|
|
CFLAGS=-c -W3 -Zp4 -Zld $(MINUS_I)$(INCLUDE) -bt=os2 -zq -zm -ep -ee
|
|
.ELSE
|
|
CFLAGS=-c -Zp4 -W3 -Zl -Zld $(MINUS_I)$(INCLUDE) -bt=os2 -zq -s
|
|
.ENDIF
|
|
CFLAGSCXX=-cc++ -xst
|
|
CFLAGSOBJGUIST= #-Alfd -GA -GEfs
|
|
CFLAGSOBJCUIST=
|
|
CFLAGSOBJGUIMT=-bm #-Alfw -GA -GEd
|
|
CFLAGSOBJCUIMT=-bm
|
|
CFLAGSSLOGUIMT=-bm -bd #-Alfw -GD -GEfd
|
|
CFLAGSSLOCUIMT=-bm -bd
|
|
CFLAGSPROF=
|
|
CFLAGSDEBUG=/d2
|
|
CFLAGSDBGUTIL=
|
|
.IF "$(e2p)" != ""
|
|
CFLAGSOPT=-otexan -3s
|
|
CFLAGSNOOPT=-od -3s
|
|
.ELSE
|
|
CFLAGSOPT=-otexan -4s
|
|
CFLAGSNOOPT=-od -4s
|
|
.ENDIF
|
|
CFLAGSOUTOBJ=-Fo
|
|
|
|
LINK=wlink
|
|
LINKFLAGS=op symf op caseexact op statics op MANY
|
|
LINKFLAGSAPPGUI=sys os2v2 pm
|
|
LINKFLAGSSHLGUI=sys os2v2 dll INITINSTANCE TERMINSTANCE
|
|
LINKFLAGSAPPCUI=sys os2v2
|
|
LINKFLAGSSHLCUI=sys os2v2 dll
|
|
LINKFLAGSTACK=op stack=
|
|
LINKFLAGSPROF=
|
|
LINKFLAGSDEBUG=debug all op undefsok
|
|
LINKFLAGSOPT=
|
|
|
|
STDOBJVCL=$(L)$/salmain.obj
|
|
STDOBJGUI=libr clib3s.lib libr plib3s.lib libr math387s.lib
|
|
STDSLOGUI=libr clib3s.lib libr os2386.lib libr plib3s.lib libr math387s.lib
|
|
STDOBJCUI=libr clib3s.lib libr plib3s.lib libr math387s.lib
|
|
STDSLOCUI=libr clib3s.lib libr plib3s.lib libr math387s.lib
|
|
STDLIBGUIST=libr os2386.lib libr clib3s.lib libr plib3s.lib
|
|
STDLIBCUIST=libr os2386.lib libr clib3s.lib libr plib3s.lib
|
|
STDLIBGUIMT=libr os2386.lib libr clib3s.lib libr plib3s.lib
|
|
STDLIBCUIMT=libr os2386.lib libr clib3s.lib libr plib3s.lib
|
|
STDSHLGUIMT=libr os2386.lib libr clib3s.lib libr plibmt3s.lib libr math387s.lib libr plib3s.lib libr noemu387.lib
|
|
STDSHLCUIMT=libr os2386.lib libr clib3s.lib libr plibmt3s.lib libr matg387s.lib libr plib3s.lib
|
|
|
|
LIBMGR=wlib
|
|
LIBFLAGS=/p=128 /c /m
|
|
|
|
IMPLIB=echo
|
|
IMPLIBFLAGS=
|
|
|
|
MAPSYM=mapsym
|
|
MAPSYMFLAGS=
|
|
|
|
RC=rc
|
|
RCFLAGS=-r $(RCFILES) $@
|
|
RCLINK=rc
|
|
RCLINKFLAGS=
|
|
RCSETVERSION=
|
|
|
|
DLLPOSTFIX=wo
|
|
|
|
.ENDIF
|
|
|
|
# --- OS2 Allgemein ---
|
|
HC=toipf
|
|
HCFLAGS=
|
|
PATH_SEPERATOR*=;
|
|
DLLPRE=
|
|
DLLPOST=.dll
|
|
EXECPOST=.exe
|
|
SCPPOST=.ins
|
|
DLLDEST=$(BIN)
|
|
|
|
.ENDIF
|