home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
mar94
/
os20
/
util
/
mcalc.lha
/
MCalc
/
Source
/
SMakeFile
< prev
Wrap
Makefile
|
1993-12-31
|
829b
|
55 lines
### Some nice macros ;)))
LFLAGS = VERBOSE SC SD NOICONS NODEBUG STRIPDEBUG
LIBS = LIB:scmieee.lib LIB:sc.lib LIB:amiga.lib
OBJS = MCalc.o MCalcARexx.o MCalcASM.o
### Link that stuff
MCalc : MCalc.gst $(OBJS) y.tab.o lex.yy.o
slink WITH T:MCalc.WITH <<!(T:MCalc.WITH)
FROM
LIB:c.o
$(OBJS)
y.tab.o
lex.yy.o
TO
MCalc
$(LFLAGS)
LIB
$(LIBS)
<
### Head for the Global Symbol Table
MCalc.gst : MCalc_gst.c Protos.h MCalc.h
sc NOOBJNAME NODEBUG MGST=MCalc.gst MCalc_gst.c
GST MCalc.gst
### Compile all available C-Files
.c.o :
sc $*.c GSTIMM MCCONS
### Assembler all available ASM-Files
.asm.o :
genam $*.Asm
### Generate Parser
y.tab.o : Parser.y
bison -yld --file-prefix y Parser.y
sc GSTIMM y.tab.c
### Generate Scanner
lex.yy.o : Scanner.l
flex -8Li -Cem Scanner.l
sc GSTIMM lex.yy.c