home *** CD-ROM | disk | FTP | other *** search
- CFLAGS = -mc
- LFLAGS = -mc
- LIB =
-
- BINDIR = ..\\bin
- PARSEDIR = ..\\parser
-
- Objects = main.obj object.obj line.obj \
- class.obj number.obj symbol.obj string.obj byte.obj array.obj file.obj \
- primitiv.obj syms.obj cldict.obj process.obj interp.obj block.obj courier.obj \
- lex.obj drive.obj lexcmd.obj
- Objects.c = main.c object.c line.c \
- class.c number.c symbol.c string.c byte.c array.c file.c \
- primitiv.c syms.c cldict.c process.c interp.c block.c courier.c \
- lex.c drive.c lexcmd.c
- MISC = disclaim Makefile.mak *.h sstr.c symbols newmal.c
-
- .c.obj:
- tcc -c $(CFLAGS) $<
-
- install: st.exe
- copy st.exe $(BINDIR)
-
- st.exe: sstr.exe drive.h cmds.h env.h $(Objects)
- tcc $(LFLAGS) -est @&&!
- $(Objects) $(LIB)
- !
-
- newst.exe: sstr.exe drive.h cmds.h env.h $(Objects)
- tcc $(LFLAGS) -enewst @&&!
- $(Objects) $(LIB)
- !
-
- # the following is used by st make script for installation on the DecPro 350
- # ld -o st -X -u __doprnt -u fltused -u fptrap -m \
- # -lfpsim /lib/fcrt0.obj $(Objects) -lm -lc
-
- #bundle: $(MISC) $(Objects.c)
- # rm -f drive.h cmds.h env.h
- # bundle $(MISC) $(Objects.c) >../sources.bundle
-
- #lint.out:$(Objects.c)
- # lint $(Objects.c)
-
- syms.c: sstr.exe symbols
- sstr -t symbols SYMTABMAX \
- \"# include \"object.h\"\" \"# include \"symbol.h\"\" >syms.c
-
- sstr.exe: sstr.c
- tcc $(CFLAGS) $(LFLAGS) -esstr sstr.c
-
- drive.h: $(PARSEDIR)\\drive.h symbols
- copy $(PARSEDIR)\\drive.h .
-
- cmds.h: $(PARSEDIR)\\cmds.h symbols
- sstr symbols <$(PARSEDIR)\\cmds.h >cmds.h
-
- env.h: $(PARSEDIR)\\env.h
- copy $(PARSEDIR)\\env.h .
-
- number.obj: number.c number.h
- interp.obj: drive.h cmds.h
- primitiv.obj: *.h
- main.obj: *.h
-
- clean:
- -del *.obj drive.h cmds.h env.h