home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
BETA
/
SAMPLES
/
OPENDOC
/
PARTS
/
CNTNRPRT
/
CNTNRPRT.MAK
< prev
next >
Wrap
Text File
|
1995-12-15
|
6KB
|
167 lines
#***************************************************************************
#
# File Name : CNTNRPTRT.MAK
#
# Description : Makefile for the Container Part OpenDoc part handler class
#
# Notes : This makefile should be run from this sample's subdirectory.
#
# Regarding the DEBUG macro statements:
# The file is shipped so that the build will not produce
# debug information ("DEBUG = /Ti-" is uncommented and
# "DEBUG = /T+" is commented out). If you prefer to build
# with debug information, comment out the first DEBUG macro
# and uncomment the second one.
#
# Entry Points: N/A
#
# (C) COPYRIGHT International Business Machines Corp. 1995
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# DISCLAIMER OF WARRANTIES. The following [enclosed] code is
# sample code created by IBM Corporation. This sample code is not
# part of any standard or IBM product and is provided to you solely
# for the purpose of assisting you in the development of your
# applications. The code is provided "AS IS", without
# warranty of any kind. IBM shall not be liable for any damages
# arising out of your use of the sample code, even if they have been
# advised of the possibility of such damages.
#
#***************************************************************************
#===========================================================================
# MACRO DEFINITIONS
#===========================================================================
FILENAME = cntnrprt
MRINAME = cntmri
DEBUG = /Ti- /DODDebug=0
#DEBUG = /Ti+ /DODDebug=1
PUBLIC = ..\public
PUBUTILS = ..\..\pubutils
INCLUDEPATH = .;$(PUBUTILS);$(PUBLIC)
#---------------------------------------------------------------------------
# XHLIST is the list of .XH files that need to be generated from the
# .IDL file.
# OBJLIST is the list of .OBJ files that will be linked with your .DLL file.
#---------------------------------------------------------------------------
XHLIST = .\CntnrPrt.xh $(PUBLIC)\CntnrPrt.xh \
.\XFrmIter.xh $(PUBLIC)\XFrmIter.xh \
.\CNNotebk.xh $(PUBLIC)\CNNotebk.xh
OBJLIST = .\$(FILENAME).obj \
.\XFrmIter.obj \
.\CNNotebk.obj \
.\cntstub.obj \
.\ordcoll.obj \
.\partinfo.obj \
.\debug.obj
MRILIST = .\cntstub.obj
#===========================================================================
# PSEUDOTARGETS:
#===========================================================================
all: $(PUBUTILS)\pubutils.lib $(XHLIST) $(FILENAME).dll \
$(PUBLIC)\$(FILENAME).lib $(MRINAME).dll cnt.hlp
.SUFFIXES:
.SUFFIXES: .idl .xh .cpp .hpp .rc .c .lib .dll .obj
#===========================================================================
# INFERENCE RULES:
#===========================================================================
.idl.xh:
sc -D _PLATFORM_OS2_ -I$(PUBLIC) "-sxh;xih;def" -p $(@B).idl
copy $(@B).idl $(PUBLIC)\$(@B).idl
copy $(@B).xh $(PUBLIC)\$(@B).xh
.idl.cpp:
sc -D _PLATFORM_OS2_ -I$(PUBLIC) "-sxh;xih;xc" -p $(@B).idl
.cpp.obj:
icc.exe /Gm+ /Ge- /Tl- /Fd /Gd+ /I$(INCLUDEPATH) /Sp4 /Q /Fi /Si $(DEBUG) /N30 /C %s
#===========================================================================
# DESCRIPTION BLOCKS (TARGETS):
# Each .OBJ file should have its own description block with the right
# dependent(s).
#===========================================================================
$(PUBUTILS)\pubutils.lib:
@echo ************************************************** & \
echo Cannot find $@ & \
echo ************************************************** & \
echo **** **** & \
echo *** You need to make PUBUTILS before you *** & \
echo *** can build this sample *** & \
echo **** **** & \
echo ************************************************** & \
exit
$(FILENAME).obj: $*.cpp $*.h partinfo.h cntnrhlp.h cntnrprp.h
$(FILENAME).dll: \
$(OBJLIST) \
$(FILENAME).def
icc.exe @<<
/Tl- /Fd /Ge- /Gd+ /Sp4 /Q /Fi /Si /Tdp
/N30 $(DEBUG)
/B" /de /pmtype:pm /nologo /nod /noi /noe /map /seg:512"
/Fe$*.dll
/Fm$*.map
$(OBJLIST)
somtk.lib
$(PUBUTILS)\pubutils.lib
os2386.lib
os2cmbsi.lib
opendoc.lib
$(FILENAME).def
<<
$(PUBLIC)\$(FILENAME).lib: $(FILENAME).dll
@echo IMPLIB::Import library contruction
IMPLIB /NOLOGO $(PUBLIC)\$(FILENAME).lib $(FILENAME).dll
$(MRINAME).res: $*.rc $*.h
rc -r -I $(INCLUDEPATH) $*.rc $@
$(MRINAME).dll: \
$(MRILIST) \
$(MRINAME).res \
$(MRINAME).def
icc.exe @<<
/Tl- /Fd /Ge- /Gd+ /Sp4 /Q /Fi /Si /Tdp /Ti
/N30 $(DEBUG)
/B" /de /pmtype:pm /nologo /nod /noi /noe /map /seg:512"
/Fe$*.dll
/Fm$*.map
$(MRILIST)
os2cmbsi.lib
$(MRINAME).def
<<
rc $*.res $*.dll
cnt.hlp: $*.ipf
ipfc $*.ipf
#---------------------------------------------------------------------------
# Remove build output
#---------------------------------------------------------------------------
CLEANUP:
@echo ***************************************************** & \
echo ** Cleaning Container part sample build output ** & \
echo *****************************************************
-del *.x* *.dll *.map *.obj *.res >nul 2>&1
-if exist CSET2PRE del CSET2PRE /n >nul 2>&1 & rd CSET2PRE >nul 2>&1