about summary refs log tree commit diff
path: root/Makefile
blob: 86b70cf7adb4c05a9669ffe4470032a40ee4f17d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RM ?= rm -f
PREFIX ?= /usr/local/
BINDIR ?= ${PREFIX}/bin

CFLAGS.veryneeded != [ "${CC}" != tcc ] && echo -ansi -fno-builtin
CFLAGS += ${CFLAGS.veryneeded}

.PHONY: all
all: buc bus

install: all
	install -d ${BINDIR}
	install -m755 buc bus ${BINDIR}

uninstall:
	${RM} ${BINDIR}/buc ${BINDIR}/bus

.PHONY: clean
clean:
	${RM} buc bus