mirror of
https://github.com/tat3r/tdfiglet.git
synced 2024-11-14 12:16:41 +00:00
23 lines
402 B
Makefile
23 lines
402 B
Makefile
PROG := tdfiglet
|
|
SRC := tdfiglet.c
|
|
CC ?= cc
|
|
CFLAGS += -std=c99 -Wall
|
|
|
|
UNAME := $(shell sh -c 'uname -s 2>/dev/null')
|
|
|
|
ifeq ($(UNAME),Darwin)
|
|
CFLAGS += -Wunused-result -Wunused-value
|
|
LDFLAGS += -liconv
|
|
endif
|
|
|
|
default: $(SRC)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(SRC) -o $(PROG)
|
|
|
|
.PHONY: debug clean
|
|
|
|
debug: $(SRC)
|
|
$(CC) -DDEBUG -g $(CFLAGS) $(LDFLAGS) $(SRC) -o $(PROG)
|
|
|
|
clean:
|
|
rm -rf $(PROG) $(PROG).dSYM
|