summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 5 insertions, 5 deletions
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