home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
fw100a.zip
/
MAKEFILE.CLK
< prev
Wrap
Text File
|
1995-11-23
|
2KB
|
86 lines
"******************************************************************************
Makefile for Clock (Uses PM Make, NOT nmake)
(c)Peter Koller 1995
******************************************************************************"
"
PM Make handles the build and the project backup using this file.
When making, PM Make first constructs a .cmd file, and then runs it.
For backup and restore, PM Make uses this file as a file template.
All this can function in multiple directories.
"
^vars()
{
ERR_LEV = "@if errorlevel 1 exit";
}
^actions()
{
Compile =
@echo »»»
@echo ««« Compiling $*.c »»»
@echo »»»
icc /Fo$*.obj /C /Ss /Q /O /Gi /Gf /Rn $*.c
$ERR_LEV
;
Link =
@echo »»»
@echo ««« Building $*.exe »»»
@echo »»»
ilink /out:$*.exe /nol /BASE:65536 /ALIGN:16 /optf /e /exec $*.obj cppon30.lib $*.def
$ERR_LEV
rc $*.res $*.exe
$ERR_LEV
;
Resource =
@echo »»»
@echo ««« Running resource compiler on $*.rc »»»
@echo »»»
rc -r -x $*.rc
$ERR_LEV
;
}
"********************************* Set Project root **************************"
"**** Backup Info ****"
^projectroot(d:\program\clock);
^files()
{
makefile;
}
"*********************** Output to command file *****************************"
^out()
{
@ECHO │
@ECHO │ PM Clock
@ECHO │ Make File
@ECHO │
@ECHO │ Copyright (c) 1995 P.Koller
@ECHO │
@ECHO │
}
"************************* Make Intermediates *******************************"
^workpath(d:\program\clock);
^make(clock.obj,$Compile, 0)
{
clock.c;
clock.h;
}
^make(clock.res, $Resource, 0)
{
clock.rc;
clock.h;
clock.dlg;
clock.ico;
}
"************************* Make Main *******************************"
^make(clock.exe, $Link, 0)
{
clock.res;
clock.obj;
clock.def;
}