mirror of
git://git.acid.vegas/archive.git
synced 2024-11-22 16:16:41 +00:00
26 lines
393 B
Makefile
26 lines
393 B
Makefile
PROG := bwu
|
|
SRC := bwu.c
|
|
CC := cc
|
|
CFLAGS += -g -std=c99 -Wall
|
|
LDFLAGS += -lm
|
|
PREFIX ?= /usr/local
|
|
|
|
UNAME := $(shell sh -c 'uname -s 2>/dev/null')
|
|
|
|
ifeq ($(UNAME), Darwin)
|
|
CC := clang
|
|
CFLAGS += -Wunused-result -Wunused-value
|
|
endif
|
|
|
|
default:
|
|
$(CC) $(CFLAGS) $(SRC) -o $(PROG) $(LDFLAGS)
|
|
|
|
.PHONY: install clean
|
|
|
|
install:
|
|
cp $(PROG) $(PREFIX)/bin/$(PROG)
|
|
|
|
clean:
|
|
rm -rf $(PROG) $(PROG).dSYM
|
|
|