From: Wolfgang (Blub) Bumiller Date: Sat, 17 Nov 2012 10:00:32 +0000 (+0100) Subject: install targets X-Git-Tag: 0.1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=852b2b91d27425d1d661e87060f0ff647713835d;p=xonotic%2Fgmqcc.git install targets --- diff --git a/Makefile b/Makefile index c17e7b4..5486dd1 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +DESTDIR := +PREFIX := /usr/local +BINDIR := $(PREFIX)/bin + CC ?= clang CFLAGS += -Wall -I. -fomit-frame-pointer -fno-stack-protector -fno-common #turn on tons of warnings if clang is present @@ -47,9 +51,17 @@ all: gmqcc qcvm clean: rm -f *.o gmqcc qcvm - + $(OBJ) $(OBJ_C) $(OBJ_X): gmqcc.h main.o: lexer.h parser.o: ast.h lexer.h ast.o: ast.h ir.h ir.o: ir.h + +install: install-gmqcc install-qcvm +install-gmqcc: gmqcc + install -d -m755 $(DESTDIR)$(BINDIR) + install -m755 gmqcc $(DESTDIR)$(BINDIR)/gmqcc +install-qcvm: qcvm + install -d -m755 $(DESTDIR)$(BINDIR) + install -m755 qcvm $(DESTDIR)$(BINDIR)/qcvm