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
2018-06-17 23:39:57 +00:00
UNAME := $(shell sh -c 'uname -s 2>/dev/null')
2016-09-07 00:01:56 +00:00
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