home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
345.lha
/
snap_v1.4
/
source
/
makefile
< prev
next >
Wrap
Makefile
|
1990-02-13
|
1KB
|
63 lines
OBJS=snap.o openclose.o clip.o patch.o handler.o snapgfx.o \
snapchars.o frame.o misc.o ikm.o snapasm.o saveilbm.o windows.o \
rexx.o minrexx.o
EXE=snap
SYMS=$(EXE).sym
SYMSRC=$(EXE).h
QUICKSYMS=ram:$(SYMS)
# Rexx stuff - Only available with Aztec
REXXCC=-dSNAPREXX
REXXOBJS=rexxglue
# Aztec
CCFLAGS=-q +I$(QUICKSYMS) $(REXXCC)
ASFLAGS=
LNFLAGS=
LNOBJS=detach $(REXXOBJS) -lc -la
SYMFLAGS=+l +h$(SYMS) -o ram:null.o
CC=cc
AS=as
LN=ln
#Lattice
#CCFLAGS=-v -H$(QUICKSYMS) # -O
#ASFLAGS=-iLattice:Asm-include/
#LNFLAGS=NOALVS SC SD ND TO $(EXE) FROM lib:cback.o
#LNOBJS=LIB lib:lc.lib lib:amiga.lib
#SYMFLAGS=-ph -o$(SYMS)
#CC=lc
#AS=asm
#LN=blink
.c.o:
$(CC) $(CCFLAGS) -o$*.o $*.c
.s.o:
$(AS) $(ASFLAGS) $*.s
all: $(SYMS) $(QUICKSYMS) $(EXE)
# Lattice link
#$(EXE): $(OBJS) $(EXE).lnk
# blink with $(EXE).lnk
#Aztec link
$(EXE): $(OBJS)
$(LN) $(LNFLAGS) $(OBJS) $(LNOBJS)
$(EXE).lnk:
echo >ram:l1 "$(LNFLAGS)"
echo >ram:l2 "$(OBJS)"
echo >ram:l3 "$(LNOBJS)"
join ram:l1 ram:l2 ram:l3 as $(EXE).lnk
delete ram:l1 ram:l2 ram:l3
$(SYMS): $(SYMSRC)
copy $(SYMSRC) ram:temp.c
$(CC) $(SYMFLAGS) ram:temp.c
delete ram:temp.c
$(QUICKSYMS): $(SYMS)
copy $(SYMS) $(QUICKSYMS)