summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 9c072c70714957c1e2f3ffe548745b18b23e0af6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PREFIX ?= /usr/local
BINDIR ?= /bin

CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion

ifeq ($(DEBUG), 1)
CFLAGS += -Og -g
else
CFLAGS +=  -O2
endif

all: pipeln

pipeln: pipeln.c

clean:
	rm -f pipeln

install:
	install -m755 pipeln -t "$(DESTDIR)$(PREFIX)$(BINDIR)"

uninstall:
	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/pipeln"

.PHONY: all clean install uninstall