archive- Random tools & helpful resources for IRC |
git clone git://git.acid.vegas/archive.git |
Log | Files | Refs | Archive |
Makefile (434B)
1 PROG := a2m 2 SRC := a2m.c 3 CC := cc 4 CFLAGS += -g -std=c99 -Wall 5 PREFIX ?= /usr/local 6 7 UNAME := $(shell sh -c 'uname -s 2>/dev/null') 8 9 ifeq ($(UNAME),Darwin) 10 CC := clang 11 CFLAGS += -Wunused-result -Wunused-value 12 LDFLAGS += -liconv 13 endif 14 15 default: 16 $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) -o $(PROG) 17 18 .PHONY: install clean 19 20 install: 21 test -d $(PREFIX)/bin || mkdir $(PREFIX)/bin 22 cp $(PROG) $(PREFIX)/bin 23 24 clean: 25 rm -rf $(PROG) $(PROG).dSYM