Small makefile fixes and readme alterations
This commit is contained in:
parent
3dd23136d5
commit
75ef085260
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
CC := clang
|
CC := clang
|
||||||
CFLAGS += -g -Wall -Wextra
|
CFLAGS += -g -Wall -Wextra
|
||||||
LFLAGS +=
|
LFLAGS +=
|
||||||
DEFINES := -DVT100 -D_REENTRANT -I/usr/include/SDL2
|
DEFINES := -DVT100 $(shell pkg-config --cflags sdl2)
|
||||||
|
|
||||||
PROGRAM := 2048
|
PROGRAM := 2048
|
||||||
C_FILES := $(wildcard src/*.c)
|
C_FILES := $(wildcard src/*.c)
|
||||||
|
|
|
@ -11,12 +11,7 @@ create a .c file which implements all the functions in gfx.h and add a Makefile
|
||||||
|
|
||||||
### Get
|
### Get
|
||||||
git clone https://github.com/Tiehuis/2048-cli.git
|
git clone https://github.com/Tiehuis/2048-cli.git
|
||||||
|
make
|
||||||
make vt100
|
|
||||||
or
|
|
||||||
make curses
|
|
||||||
or
|
|
||||||
make sdl
|
|
||||||
|
|
||||||
### Run
|
### Run
|
||||||
./2048
|
./2048
|
||||||
|
|
Loading…
Reference in New Issue
Block a user