home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0987.lha
/
MCalc
/
Source
/
SMakeFile
< prev
Wrap
Makefile
|
1994-04-05
|
940b
|
57 lines
### Some nice macros ;)))
LFLAGS = DEFINE __CXM33=__UCXM33 DEFINE __CXD33=__UCXD33 \
DEFINE __CXM22=__UCXM22 DEFINE __CXD22=__UCXD22 \
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