mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
install targets
This commit is contained in:
parent
6333130537
commit
852b2b91d2
1 changed files with 13 additions and 1 deletions
14
Makefile
14
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
|
||||
|
|
Loading…
Reference in a new issue