diff options
| author | 2019-09-26 00:59:59 -0400 | |
|---|---|---|
| committer | 2019-09-26 00:59:59 -0400 | |
| commit | f90c5a34c5dba525b856bcdaf9e378f9a3656072 (patch) | |
| tree | b993a40978f58fa936cae50e12d5b4631582c82f /Makefile | |
| parent | 1b26a6e8221f19e5a2d6e16a1e2f4585ae36eb4e (diff) | |
| download | chip8-f90c5a34c5dba525b856bcdaf9e378f9a3656072.tar.gz chip8-f90c5a34c5dba525b856bcdaf9e378f9a3656072.tar.bz2 chip8-f90c5a34c5dba525b856bcdaf9e378f9a3656072.zip | |
remove string method and use bitwise
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -1,19 +1,19 @@ -all: CC=gcc
-win: CC=x86_64-w64-mingw32-gcc
-
-CFLAGS = -O3 -Wall -std=c99 $(shell pkg-config --cflags ncursesw)
-
-all: BIN = chip8
-win: BIN = chip8.exe
-
-all: executable
-win: executable
-
-all: LDFLAGS = -lncursesw -ltinfow -lpthread
-win: LDFLAGS = ./win/pdcurses.a -lpthread
-
-executable: chip8.c ui.c util.c
- $(CC) $(CFLAGS) -o $(BIN) chip8.c ui.c util.c $(LDFLAGS)
-
-clean:
- $(RM) chip8
+all: CC=gcc +win: CC=x86_64-w64-mingw32-gcc + +CFLAGS = -O3 -Wall -std=c99 $(shell pkg-config --cflags ncursesw) + +all: BIN = chip8 +win: BIN = chip8.exe + +all: executable +win: executable + +all: LDFLAGS = -lncursesw -ltinfow -lpthread +win: LDFLAGS = ./win/pdcurses.a -lpthread + +executable: chip8.c ui.c + $(CC) $(CFLAGS) -o $(BIN) chip8.c ui.c $(LDFLAGS) + +clean: + $(RM) chip8 |