1
mirror of git://git.acid.vegas/archive.git synced 2024-11-15 04:36:53 +00:00
archive/art/a2m/Makefile

26 lines
434 B
Makefile
Raw Normal View History

2023-06-24 04:55:09 +00:00
PROG := a2m
SRC := a2m.c
CC := cc
CFLAGS += -g -std=c99 -Wall
PREFIX ?= /usr/local
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)
.PHONY: install clean
install:
test -d $(PREFIX)/bin || mkdir $(PREFIX)/bin
cp $(PROG) $(PREFIX)/bin
clean:
rm -rf $(PROG) $(PROG).dSYM