a2m/Makefile

19 lines
308 B
Makefile
Raw Normal View History

2016-09-07 00:01:56 +00:00
PROG := a2m
SRC := a2m.c
CC := cc
2016-09-10 11:00:26 +00:00
CFLAGS += -g -std=c99 -Wall
2016-09-07 00:01:56 +00:00
UNAME := $(shell sh -c 'UNAME -s 2>/dev/null')
ifeq ($(UNAME),Darwin)
CC := clang
CFLAGS += -Wunused-result -Wunused-value
LDFLAGS += -liconv
endif
default:
$(CC) $(CFLAGS) $(LDFLAGS) $(SRC) -o $(PROG)
clean:
2016-09-10 11:00:26 +00:00
rm -rf $(PROG) $(PROG).dSYM