summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-09-28 02:22:28 -0400
committerAndrew Opalach <andrew@akon.city> 2019-09-28 02:22:28 -0400
commit8da00c33383818955cf3166304756e927797f2c9 (patch)
tree1f4122440b58caa08cd8bfb085966d46c413fa82 /Makefile
parentbf544a28fb0b462f7dfe05f323bee1ee31878bc7 (diff)
downloadchip8-8da00c33383818955cf3166304756e927797f2c9.tar.gz
chip8-8da00c33383818955cf3166304756e927797f2c9.tar.bz2
chip8-8da00c33383818955cf3166304756e927797f2c9.zip
sdl ui
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