home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
192.lha
/
Snip_v1.3
/
makefile
< prev
next >
Wrap
Makefile
|
1988-04-28
|
2KB
|
66 lines
# To build snip you need to assign snip: to the directory containing all
# source files. You also need to assign incl: to the directory containing
# a Manx pre-compiled include file of the common intuition & graphics
# symbols. This particular incarnation also uses detach.o32 which is specific
# to Manx 3.6. If you don't link it in the only difference will be that you
# need to run SNIP and it will use the default CLI stack rather than a fixed
# 4000 bytes.
S = snip:
OBJS = $Ssnip.ln $Sstash.ln $Sgfx_txt.ln $Sfuncs.ln $Swindowutil.ln $Scbio.ln $Skbio.ln $Sparse.ln
SRCS = $Sstash.c $Sgfx_txt.c $Ssnip.c $Sfuncs.c $Swindowutil.c $Scbio.c $Skbio.c $Sparse.c
ASMS = $Sstash.asm $Sgfx_txt.asm $Ssnip.asm $Sfuncs.asm $Swindowutil.asm $Scbio.asm $Skbio.asm $Sparse.asm
.SUFFIXES = .ln .asm .c
CFLAGS = +l +Iincl:incl.32 -a
LFLAGS = -lc32
H = $Ssnip.h
D = $Sdefs.h
.asm.ln:
rez as -u cc
as -o $@ $S$*.asm
.c.asm:
rez cc -u as
cc $(CFLAGS) -o $@ $S$*.c
all.ln: $(ASMS)
snip: $(OBJS)
rez -u as
ln -o ram:snip $(OBJS) $Sdetach.o32 -lc32
copy ram:snip $S
$Ssnip.ln: $Ssnip.asm
$Sstash.ln: $Sstash.asm
$Sgfx_txt.ln: $Sgfx_txt.asm
$Sfuncs.ln: $Sfuncs.asm
$Swindowutil.ln: $Swindowutil.asm
$Scbio.ln: $Scbio.asm
$Skbio.ln: $Skbio.asm
$Sparse.ln: $Sparse.asm
$Sstash.asm: $Sstash.c $D
$Sgfx_txt.asm: $Sgfx_txt.c $D
$Ssnip.asm: $Ssnip.c $D $H
$Sfuncs.asm: $Sfuncs.c
$Swindowutil.asm: $Swindowutil.c
$Scbio.asm: $Scbio.c
$Skbio.asm: $Skbio.c
$Sparse.asm: $Sparse.c $D
snipgen: $Ssnipgen.c
rez -u as
cc $(CFLAGS) -o $Ssnipgen.asm $Ssnipgen.c
rez -u cc
as -o ram:snipgen.ln $Ssnipgen.asm
ln -o ram:snipgen ram:snipgen.ln -lc32