From 8da00c33383818955cf3166304756e927797f2c9 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 28 Sep 2019 02:22:28 -0400 Subject: sdl ui --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3f86ee2..40a53e2 100755 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-101-g0448