fixes for the SDL build

This commit is contained in:
Jorj Bauer 2021-01-23 00:45:33 -05:00
parent ed95a42091
commit 8702a25b4a
2 changed files with 7 additions and 4 deletions

View File

@ -3,8 +3,8 @@ LDFLAGS=-L/usr/local/lib
SDLLIBS=-lSDL2 -lpthread
FBLIBS=-lpthread
CFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -DSUPPRESSREALTIME -DSTATICALLOC
CXXFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -DSUPPRESSREALTIME -DSTATICALLOC
CFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -DSUPPRESSREALTIME -DSTATICALLOC -DAIIE
CXXFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -DSUPPRESSREALTIME -DSTATICALLOC -DAIIE
TSRC=cpu.cpp util/testharness.cpp

View File

@ -7,11 +7,14 @@
// Block number we start packing data bits after (Woz 2.0 images)
#define STARTBLOCK 3
#if defined(AIIE) || defined(TEENSYDUINO)
#define LAZYFD
#include "fscompat.h"
#endif
#ifdef TEENSYDUINO
// This junk is for my AiiE project. I need to abstract it out better.
#include "fscompat.h"
#define SKIPCHECKSUM
#define LAZYFD
#define malloc extmem_malloc
#define free extmem_free
#define calloc extmem_calloc