home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
pamake25.arj
/
MAKEFILE.LC
< prev
next >
Wrap
Text File
|
1990-08-28
|
3KB
|
96 lines
# PAMAKE makefile by Roundhill Computer Systems Limited August 1990
#
# This PAMAKE makefile builds the PAMAKE program for DOS and OS/2,
# using Lattice C 6.05. This compiler builds a more compact family
# mode program than Microsoft C 5.1.
#
# For information on the PAMAKE make utility, see PAMAKE.DOC
#
# The directory structure for which this makefile was constructed is
# as follows:
#
# \lc6 : C compiler executables
# c:\os2 : DOSCALLS.LIB
# \lc6 : .H files
# \lc6\s : compiler small-model library files
# k:\c600\pamake : source for PAMAKE
#
# This makefile is invoked from the \lc6\pamake directory.
#
# Note: use a renamed version of PAMAKE to rebuild it under OS/2.
# OS/2 will not allow writing to the EXE file while it is
# actually running.
#
# Note: In version 6.05, we found that the LBIND utility only works
# under OS/2.
#
# --------------------------------------------------------------------
target: pamake.exe
+@echo make complete: target is up-to-date
# --------------------------------------------------------------------
#
# The following macro definitions are placed in the DOS environment
# during execution of PAMAKE. Modify them to specify the pathnames
# which apply in your system. Note that the PATH must include all
# directories which contain commands to be executed by PAMAKE, since
# it overrides your previous path during the execution of the make.
#
# --------------------------------------------------------------------
RAMFLAG=-qm:\ # RAM Disk, delete this line if not available
#if TEST=1
CD=-d2 # compiler debug switch for CodePRobe
LD=/DEBUG # linker debug switch for CodePRobe
#else
CD=-Oals # use global optimiser
#endif
M=S # small model
SRC=k:\c600\pamake
+PATH=\lc6\bin
+INCLUDE=\lc6\include;$(SRC)
+LIB=\lc6\$M;\lc6;\lc6\dos
+LC=\lc6
# --------------------------------------------------------------------
#
# PAMAKE has a built-in command of $(CC) $(CFLAGS) $(CFILES) for C
# compilations. Here we set these macros for the Microsoft compiler.
#
# --------------------------------------------------------------------
CC=lc
CFLAGS=-m$M $(RAMFLAG) -g1 -gv2 -go -v -ct $(CD)
CFILES=-o$@ $<
.SUFFIXES: # clear suffixes list
.SUFFIXES: .c # not .asm and .pnl as built-in
# --------------------------------------------------------------------
#
# Here are the programs to build
#
# --------------------------------------------------------------------
OBJS= main.obj check.obj input.obj macro.obj make.obj reader.obj rules.obj ifproc.obj mtime.obj
pamake.exe: $(OBJS)
lc -Lro $(LD) -g1 -m$M$S $@ $(OBJS) nondp.lib
# --------------------------------------------------------------------
#
# Commands to build objects.
#
# --------------------------------------------------------------------
$(OBJS): $(SRC)\$*.c $(SRC)\h.h
# --------------------------------------------------------------------
#
# end of makefile
#
# --------------------------------------------------------------------