home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
misc
/
math
/
MCalc17.lha
/
MCalc
/
Source
/
SMakeFile
< prev
Wrap
Makefile
|
1995-11-29
|
950b
|
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
@Avail >NIL: FLUSH
slink WITH T:MCalc.WITH <<!(T:MCalc.WITH)
FROM
$(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