diff options
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..5be29ab --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CC=gcc +FLAGS= + +DESTDIR= +PREFIX=/usr + + +.DEFAULT_GOAL := build-hbar + +install: install-hbar install-headers +build: build-hbar + +install-headers: src/*.h + install -m644 src/*.h ${DESTDIR}${PREFIX}/include + +install-hbar: bin/hbar + install -m755 bin/hbar ${DESTDIR}${PREFIX}/bin + +build-hbar: src/hbar.c + ${CC} src/hbar.c -o bin/hbar ${FLAGS} + +prepare: + rm -rf bin + mkdir -pv bin + |