Forked from https://github.com/tiehuis/2048-cli.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
712 B
24 lines
712 B
CC ?= clang |
|
CFLAGS += -Wno-visibility -Wno-incompatible-pointer-types -Wall -Wextra |
|
CFLAGS += -DINVERT_COLORS -DVT100 -O2 |
|
LFLAGS += |
|
|
|
PROGRAM := 2048 |
|
C_FILES := $(wildcard src/*.c) |
|
MERGE_FILE := src/merge_std.c |
|
FILTERED_C_FILES := $(filter-out src/gfx%.c src/merge%.c, $(C_FILES)) |
|
|
|
all: terminal |
|
|
|
curses: $(FILTERED_C_FILES) src/gfx_curses.c |
|
$(CC) $(CFLAGS) -I/usr/share/gettext $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lcurses |
|
|
|
terminal: $(FILTERED_C_FILES) src/gfx_terminal.c |
|
$(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_terminal.c -o $(PROGRAM) $(LDFLAGS) |
|
|
|
remake: clean all |
|
|
|
clean: |
|
rm -f $(PROGRAM) |
|
|
|
.PHONY: clean remake
|
|
|