a2m/Makefile
2016-09-10 06:00:26 -05:00

19 lines
308 B
Makefile

PROG := a2m
SRC := a2m.c
CC := cc
CFLAGS += -g -std=c99 -Wall
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:
rm -rf $(PROG) $(PROG).dSYM