mirror of
https://github.com/tat3r/a2m.git
synced 2024-11-23 16:06:39 +00:00
18 lines
298 B
Makefile
18 lines
298 B
Makefile
|
PROG := a2m
|
||
|
SRC := a2m.c
|
||
|
CC := cc
|
||
|
CFLAGS += -g -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
|