home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Developer CD v1.2
/
amidev_cd_12.iso
/
devcon
/
sanfrancisco_1989
/
sf-devcon89.1
/
commodities
/
lattice
/
cxsupp
/
makefile
< prev
next >
Wrap
Makefile
|
1992-08-27
|
1KB
|
67 lines
# cxsupp -- support scanned library for Commodities Exchange
# FOR LATTICE VERSION V5.02
##### precompiled include file setup #####
SYM=cxsupp.sym
SYMSRC= sysall.h
SYMDIR=RAD:
##### options #####
# lc pass 1
CFLAGS1=-i//include/ -. -iINCLUDE: -d -cwus -H$(SYMDIR)$(SYM)
# lc pass 2
CFLAGS2=-.
# cape assembler
AFLAGS=-iINCLUDE: -cvrf
# linker
BLOPTS=BATCH BUFSIZE 1024 QUIET SC SD
##### rules #####
# lattice compiler
.c.o:
@echo " $*.c pass 1"
@lc1 $(CFLAGS1) -oquad:$*.q $*
go quad:$*.q
@echo " $*.c pass 2"
@lc2 $(CFLAGS2) -o$*.o quad:$*.q
# cape assembler rule
.asm.o:
casm -a $*.asm -o$*.o $(AFLAGS)
# produce a "listing" file (by disassembly)
.o.lst:
omd >$*.lst $*.o $*.c
# produce a library pragma file (.p file) from .fd file
.fd.p:
fd2pragma $*.fd $*.p
###### scanned library #####
#all: $(SYMDIR)$(SYM) test.p kp.omod test
all: $(SYMDIR)$(SYM) cx_support.lib
OBJ=argarray.o hotkey.o ixusr.o invert.o freeie.o
SRC=argarray.c hotkey.c ixusr.c invert.c freeie.c
# make a scanned library
cx_support.lib: $(OBJ) makefile
join $(OBJ) to $@
##### kprintf stub #####
kp.omod: kp.o
blink PRELINK $(BLOPTS) FROM kp.o LIB LIB:debug.lib LIB:amiga.lib TO $@
##### make precompiled header files #####
$(SYMDIR)$(SYM): $(SYM)
copy $(SYM) $(SYMDIR)
$(SYM): $(SYMSRC)
lc1 -i//include/ -ph -o$(SYM) $(SYMSRC)
##### utilities #####
clean:
delete \#?.lst \#?.o \#?.q \#?.p