mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-29 16:49:26 +00:00
46 lines
1.9 KiB
Makefile
Executable File
46 lines
1.9 KiB
Makefile
Executable File
LDFLAGS=-L/usr/local/lib
|
|
|
|
SDLLIBS=-lSDL2 -lpthread
|
|
FBLIBS=-lpthread
|
|
|
|
CXXFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -O3 -DSUPPRESSREALTIME -DSTATICALLOC
|
|
|
|
TSRC=cpu.cpp util/testharness.cpp
|
|
|
|
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 bios.o apple/noslotclock.o apple/woz.o apple/crc32.o apple/woz-serializer.o
|
|
|
|
FBOBJS=linuxfb/linux-speaker.o linuxfb/fb-display.o linuxfb/linux-keyboard.o linuxfb/fb-paddles.o nix/nix-filemanager.o linuxfb/aiie.o linuxfb/linux-printer.o nix/nix-clock.o nix/nix-prefs.o
|
|
|
|
SDLOBJS=sdl/sdl-speaker.o sdl/sdl-display.o sdl/sdl-keyboard.o sdl/sdl-paddles.o nix/nix-filemanager.o sdl/aiie.o sdl/sdl-printer.o nix/nix-clock.o nix/nix-prefs.o nix/debugger.o nix/disassembler.o
|
|
|
|
ROMS=apple/applemmu-rom.h apple/diskii-rom.h apple/parallel-rom.h apple/hd32-rom.h
|
|
|
|
.PHONY: roms
|
|
|
|
all:
|
|
@echo You want \'make sdl\' or \'make linuxfb\'.
|
|
|
|
sdl: roms $(COMMONOBJS) $(SDLOBJS)
|
|
g++ $(LDFLAGS) $(SDLLIBS) -o aiie-sdl $(COMMONOBJS) $(SDLOBJS)
|
|
|
|
linuxfb: roms $(COMMONOBJS) $(FBOBJS)
|
|
g++ $(LDFLAGS) $(FBLIBS) -o aiie-fb $(COMMONOBJS) $(FBOBJS)
|
|
|
|
clean:
|
|
rm -f *.o *~ */*.o */*~ testharness.basic testharness.verbose testharness.extended testharness apple/diskii-rom.h apple/applemmu-rom.h apple/parallel-rom.h aiie-sdl
|
|
|
|
test: $(TSRC)
|
|
g++ $(CXXFLAGS) -DEXIT_ON_ILLEGAL -DVERBOSE_CPU_ERRORS -DTESTHARNESS $(TSRC) -o testharness
|
|
./testharness -f tests/6502_functional_test_verbose.bin -s 0x400 && \
|
|
./testharness -f tests/65C02_extended_opcodes_test.bin -s 0x400 && \
|
|
./testharness -f tests/65c02-all.bin -s 0x200
|
|
|
|
roms: apple2e.rom disk.rom parallel.rom HDDRVR.BIN
|
|
./util/genrom.pl apple2e.rom disk.rom parallel.rom HDDRVR.BIN
|
|
|
|
apple/applemmu-rom.h: roms
|
|
|
|
apple/diskii-rom.h: roms
|
|
|
|
apple/parallel-rom.h: roms
|