2017-02-26 16:00:41 +00:00
|
|
|
LDFLAGS=-L/usr/local/lib
|
2017-02-19 23:55:54 +00:00
|
|
|
|
2017-02-26 16:00:41 +00:00
|
|
|
SDLLIBS=-lSDL2
|
|
|
|
|
2017-02-26 16:31:07 +00:00
|
|
|
CXXFLAGS=-Wall -I .. -I . -I apple -I sdl -I/usr/local/include/SDL2 -O3 -g
|
2017-02-19 18:46:13 +00:00
|
|
|
|
|
|
|
TSRC=cpu.cpp util/testharness.cpp
|
|
|
|
|
2018-01-10 09:13:04 +00:00
|
|
|
COMMONOBJS=cpu.o apple/appledisplay.o apple/applekeyboard.o apple/applemmu.o apple/applevm.o apple/diskii.o apple/nibutil.o LRingBuffer.o globals.o apple/parallelcard.o apple/fx80.o lcg.o apple/hd32.o images.o apple/appleui.o vmram.o
|
2017-02-26 16:00:41 +00:00
|
|
|
|
2017-03-01 04:44:03 +00:00
|
|
|
SDLOBJS=sdl/sdl-speaker.o sdl/sdl-display.o sdl/sdl-keyboard.o sdl/sdl-paddles.o sdl/sdl-filemanager.o sdl/aiie.o sdl/sdl-printer.o sdl/sdl-clock.o
|
2017-02-19 23:55:54 +00:00
|
|
|
|
2017-12-29 19:08:49 +00:00
|
|
|
ROMS=apple/applemmu-rom.h apple/diskii-rom.h apple/parallel-rom.h apple/hd32-rom.h
|
2017-02-19 23:55:54 +00:00
|
|
|
|
2017-02-26 16:00:41 +00:00
|
|
|
all: sdl
|
|
|
|
|
|
|
|
sdl: roms $(COMMONOBJS) $(SDLOBJS)
|
2017-02-26 16:31:07 +00:00
|
|
|
g++ $(LDFLAGS) $(SDLLIBS) -o aiie-sdl $(COMMONOBJS) $(SDLOBJS)
|
2017-02-19 18:46:13 +00:00
|
|
|
|
|
|
|
clean:
|
2017-02-26 16:31:07 +00:00
|
|
|
rm -f *.o *~ */*.o */*~ testharness.basic testharness.verbose testharness.extended apple/diskii-rom.h apple/applemmu-rom.h apple/parallel-rom.h aiie-sdl
|
2017-02-19 18:46:13 +00:00
|
|
|
|
|
|
|
test: $(TSRC)
|
2017-09-05 08:30:23 +00:00
|
|
|
g++ $(CXXFLAGS) -DEXIT_ON_ILLEGAL -DVERBOSE_CPU_ERRORS -DTESTHARNESS -DBASICTEST $(TSRC) -o testharness.basic
|
|
|
|
g++ $(CXXFLAGS) -DEXIT_ON_ILLEGAL -DVERBOSE_CPU_ERRORS -DTESTHARNESS -DVERBOSETEST $(TSRC) -o testharness.verbose
|
|
|
|
g++ $(CXXFLAGS) -DEXIT_ON_ILLEGAL -DVERBOSE_CPU_ERRORS -DTESTHARNESS -DEXTENDEDTEST $(TSRC) -o testharness.extended
|
2017-02-19 18:46:13 +00:00
|
|
|
|
2017-12-29 19:08:49 +00:00
|
|
|
roms: apple2e.rom disk.rom parallel.rom HDDRVR.BIN
|
|
|
|
./util/genrom.pl apple2e.rom disk.rom parallel.rom HDDRVR.BIN
|
2017-02-19 23:55:54 +00:00
|
|
|
|
|
|
|
apple/applemmu-rom.h: roms
|
|
|
|
|
|
|
|
apple/diskii-rom.h: roms
|
|
|
|
|
2017-02-20 23:41:46 +00:00
|
|
|
apple/parallel-rom.h: roms
|