diff options
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ all: CC=gcc win: CC=x86_64-w64-mingw32-gcc -CFLAGS = -O3 -Wall -std=c99 $(shell pkg-config --cflags ncursesw) +CFLAGS = -O3 -Wall -std=c99 $(shell pkg-config --cflags sdl2) all: BIN = chip8 win: BIN = chip8.exe @@ -9,11 +9,11 @@ win: BIN = chip8.exe all: executable win: executable -all: LDFLAGS = -lncursesw -ltinfow -lpthread -win: LDFLAGS = ./win/pdcurses.a -lpthread +all: LDFLAGS = -lSDL2 +win: LDFLAGS = -lSDL2 -executable: chip8.c ui.c - $(CC) $(CFLAGS) -o $(BIN) chip8.c ui.c $(LDFLAGS) +executable: chip8.c ui_sdl.c + $(CC) $(CFLAGS) -o $(BIN) chip8.c ui_sdl.c $(LDFLAGS) clean: $(RM) chip8 |