improve Makefile, update example pictures
This commit is contained in:
parent
91306135b2
commit
0ea7dcef29
13 changed files with 89 additions and 50 deletions
|
|
@ -3,12 +3,17 @@ SASM=./sasm
|
|||
LSYMGEN=./lsymgen
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .pas .o
|
||||
.SUFFIXES: .pas .o .s .prog
|
||||
|
||||
.pas.s:
|
||||
$(PCOMP) $<
|
||||
.s.prog:
|
||||
$(SASM) $<
|
||||
|
||||
.pas:
|
||||
fpc -Mobjfpc -gl $<
|
||||
|
||||
all: pcomp sasm sdis lsymgen shortgen
|
||||
all: pcomp sasm sdis lsymgen shortgen nativeprogs
|
||||
|
||||
libs: pcomp sasm lsymgen shortgen
|
||||
$(SASM) ../lib/coreloader.s
|
||||
|
|
@ -17,33 +22,23 @@ libs: pcomp sasm lsymgen shortgen
|
|||
$(SASM) ../lib/stdlibwrap.s ../lib/stdlib.lib
|
||||
$(LSYMGEN) ../lib/stdlibwrap.sym ../lib/stdlib.lsym
|
||||
|
||||
nativecomp: pcomp sasm libs
|
||||
$(PCOMP) sasm.pas
|
||||
$(PCOMP) pcomp.pas
|
||||
$(PCOMP) lsymgen.pas
|
||||
$(PCOMP) shortgen.pas
|
||||
test: sasm.s pcomp.s lsymgen.s shortgen.s
|
||||
|
||||
nativeprogs: nativecomp
|
||||
$(PCOMP) ../progs/shell.pas
|
||||
$(PCOMP) ../progs/editor.pas
|
||||
$(PCOMP) ../progs/reclaim.pas
|
||||
$(PCOMP) ../progs/dumpdir.pas
|
||||
$(PCOMP) ../progs/partmgr.pas
|
||||
$(PCOMP) ../progs/xfer.pas
|
||||
$(PCOMP) ../progs/recover.pas
|
||||
$(PCOMP) ../progs/changemem.pas
|
||||
testprgs: sasm.prog pcomp.prog lsymgen.prog shortgen.prog
|
||||
|
||||
nativecomp: libs pcomp.prog sasm.prog lsymgen.prog shortgen.prog
|
||||
|
||||
nativeprogs: pcomp ../progs/shell.prog ../progs/editor.prog ../progs/reclaim.prog \
|
||||
../progs/dumpdir.prog ../progs/partmgr.prog ../progs/xfer.prog \
|
||||
../progs/recover.prog ../progs/changemem.prog
|
||||
$(SASM) ../lib/rommon.s
|
||||
$(SASM) -A ../lib/rommon.s ../lib/rom.mem
|
||||
|
||||
examples: nativecomp
|
||||
$(PCOMP) ../tests/readtest.pas
|
||||
$(PCOMP) ../tests/readchartest.pas
|
||||
$(PCOMP) ../tests/timetest.pas
|
||||
$(PCOMP) ../tests/test133.pas
|
||||
examples: nativecomp ../tests/readtest.prog ../tests/readchartest.prog ../tests/timetest.prog \
|
||||
../tests/test133.prog ../tests/cchangetest.prog ../tests/tree.prog
|
||||
-$(PCOMP) ../examples/chase.pas
|
||||
$(PCOMP) ../tests/cchangetest.pas
|
||||
$(PCOMP) ../tests/tree.pas
|
||||
-$(SASM) ../examples/chase.s
|
||||
-$(MAKE) -C ../rogue -f Makefile.tridoracpu
|
||||
|
||||
clean:
|
||||
rm -f pcomp sasm sdis libgen lsymgen *.o *.s
|
||||
rm -f pcomp sasm sdis libgen lsymgen *.o *.s *.prog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue