diff --git a/Makefile b/Makefile index f7e9640..181b348 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ -CFLAGS = -O2 -masm=intel +CFLAGS ?= -O2 -masm=intel +PREFIX ?= /usr +VERSION = 0.7.0a CC = g++ LIBS = -lm @@ -17,5 +19,11 @@ clean: rm *.o core *~ release: - tar cf procbench.tar Makefile *.cpp *.h README TODO COPYING + mkdir procbench-$(VERSION) + cp Makefile *.cpp *.h README TODO COPYING procbench-$(VERSION) + tar cvzf procbench-$(VERSION).tar.gz procbench-$(VERSION) + rm -rf procbench-$(VERSION) +install: procbench + install -d $(DESTDIR)$(PREFIX)/bin + install -m755 procbench $(DESTDIR)$(PREFIX)/bin