tdfiglet/Makefile

23 lines
402 B
Makefile
Raw Normal View History

2018-06-23 06:44:33 +00:00
PROG := tdfiglet
SRC := tdfiglet.c
2018-06-25 01:41:42 +00:00
CC ?= cc
2018-06-23 06:44:33 +00:00
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