home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ddkx86v5.zip
/
DDKX86
/
SRC
/
PEN
/
PENTKT
/
UTIL
/
PENCAL
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1995-04-14
|
4KB
|
135 lines
#****************************************************************************
# Dot directive definition area (usually just suffixes)
#****************************************************************************
.SUFFIXES: .c .obj .lib .dll .csc .sc .h .ih .ph .psc .rc .res
!ifndef TOOLBASE
TOOLBASE = ..\..\..\..\..\tools
!endif
!ifndef BLDTOOLS
BLDTOOLS = $(TOOLBASE)
!endif
!ifndef CSET2
CSET2 = $(TOOLBASE)\cset2
!endif
!ifndef TOOLKT21
TOOLKT21 = $(TOOLBASE)\toolkt20
!endif
#****************************************************************************
# Environment Setup for the component(s).
#****************************************************************************
DDK = ..\..\..\..\..
IH = ..\..\..\h
TLKH = ..\..\h;..\..\penbase\inc;
PENH = $(IH);$(TLKH)
CSET2H = $(CSET2)\include;$(CSET2)\include\sys
CSET2L = $(CSET2)\lib;
CSET2B = $(CSET2)\bin
CSET2M = $(CSET2)\locale;$(CSET2)\help
OS2H = $(TOOLKT21)\c\os2h;$(DDK)\ibmh;$(DDK)\inc
PINCLUDE = -I. -I..\..\penbase\inc
OS2L = $(TOOLKT21)\os2lib;$(DDK)\lib
PENL = ..\..\lib
OS2B = $(TOOLKT21)\os2bin
!if [set INCLUDE=$(PENH);$(CSET2H);$(OS2H);$(PINCLUDE);%INCLUDE%] || \
[set LIB=$(CSET2L);$(OS2L);$(PENL);%lib%] || \
[set PATH=$(CSET2B);$(OS2B);$(BLDTOOLS);$(PATH);%path%] || \
[set DPATH=$(CSET2M);$(DPATH);%dpath%]
!endif
SOMTEMP= $(TMP)
!if [set SMTMP=$(SOMTEMP)] || \
[set SMEMIT=ih;h;ph;psc;sc;c]
!endif
#
# Compiler/tools Macros
#
!ifdef DEBUG
CDBFLAG=/Ti+ /O-
LDBFLAG=/DEBUG /BATCH
!endif
CC = icc /c /Gm /Ss $(CDBFLAG)
# CC = icc /c /Gm /Ss /Ti /Fa+
LINK = link386 $(LDBFLAG)
LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16
# LIBS = dbcsmbs.lib os2386.lib dde4mbs.lib
LIBS = os2386.lib dde4mbs.lib penpm.lib
#****************************************************************************
# Set up Macros that will contain all the different dependencies for the
# executables and dlls etc. that are generated.
#****************************************************************************
OBJS = pmmain.obj pmalign.obj align.obj penpm.obj
#****************************************************************************
# Setup the inference rules for compiling source code to
# object code.
#****************************************************************************
.c.obj:
$(CC) /fo$*.obj $(PINCLUDE) $<
.asm.obj:
$(MASM) $*.asm $*.obj
.csc.ih:
sc -v -r $*.csc
.csc.c:
sc $*.csc
#******************************************************************************
# Target Information
#******************************************************************************
#
# This is a very important step. The following small amount of code MUST
# NOT be removed from the program. The following directive will do
# dependency checking every time this component is built UNLESS the
# following is performed:
# A specific tag is used -- ie. all
#
# This allows the developer as well as the B & I group to perform incremental
# build with a degree of accuracy that has not been used before.
# There are some instances where certain types of INCLUDE files must be
# created first. This type of format will allow the developer to require
# that file to be created first. In order to achive that, all that has to
# be done is to make the DEPEND.MAK tag have your required target. Below is
# an example:
#
# depend.mak: { your file(s) } dephold
#
# Please DON'T remove the following line
#
all: cal.exe
#
# Specific Process Tag
#
cal.exe : $*.def $(OBJS) cal.res
$(LINK) /NOI /NOD @<<
$(OBJS)
$@
$*.map /map
$(LIBS)
$*.def
<<
rc $*.res $*.exe
cal.res : cal.rc calres.h cal.ico target.ico
rc -r $*.rc $*.res
#******************************************************************************