diff options
| author | 2019-09-28 02:22:28 -0400 | |
|---|---|---|
| committer | 2019-09-28 02:22:28 -0400 | |
| commit | 8da00c33383818955cf3166304756e927797f2c9 (patch) | |
| tree | 1f4122440b58caa08cd8bfb085966d46c413fa82 /Makefile | |
| parent | bf544a28fb0b462f7dfe05f323bee1ee31878bc7 (diff) | |
| download | chip8-8da00c33383818955cf3166304756e927797f2c9.tar.gz chip8-8da00c33383818955cf3166304756e927797f2c9.tar.bz2 chip8-8da00c33383818955cf3166304756e927797f2c9.zip | |
sdl ui
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 |