# makefile
# Created by IBM WorkFrame/2 MakeMake at 2:42:32 on 23 Mar 2006
#
# The actions included in this make file are:
#  Compile::C++ Compiler
#  Link::Linker

# Compiler flags:
#   /Ti :       debug info
#   /O  :       optimize
#   /Gm :       use multithreaded library
#   /Gd :       indicate to link to RTL dynamically (as DLL),
#               dllrname will then replace CPPOM30.DLL with OS2OM30.DLL
#               as the latter is delivered with OS/2
#   /Ge-:       compile object to be used in DLL
# Linker flags:
#   /de :       debug info
#   /dbgpack:   compress debug info
#   /exepack:2  compress binary with OS/2 Warp compatible method
#   /packc:     combine the code segments as much as possible
#   /packd:     combine the data segments as much as possible
#   /optfunc:   remove all not used functions


!IF [$(DEBUG)]
CFLAGS = /Ti
LFLAGS = /de /dbgpack
!ELSE
CFLAGS = /O
LFLAGS =
!ENDIF

.SUFFIXES:

.SUFFIXES: \
       .cpp .obj

.cpp.obj:
       @echo " Compile::C++ Compiler "
       icc.exe $(CFLAGS) /Q /W1 /Gm /Gd /Ge- /Ft- /C $<

all: \
       minstall.dll

minstall.dll: \
       minstall.obj \
       minstall.def
       @echo " Link::Linker "
       -7 ilink.exe /NOLOGO @<<
$(LFLAGS) /Dll /exepack:2 /nobase /packc /packd /optfunc
/Out:$@
mmpm2.lib
minstall.def
minstall.obj
<<
       dllrname.exe /Q $@ CPPOM30=OS2OM30 /N

minstall.obj: \
       minstall.cpp
