mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
Add qcvm rule to makefile
This commit is contained in:
parent
d6bf906647
commit
5b9e0a62ab
1 changed files with 10 additions and 2 deletions
12
Makefile
12
Makefile
|
@ -4,17 +4,21 @@ LDFLAGS = -lm
|
|||
|
||||
CSRCS = ansi.c ast.c code.c conout.c fold.c fs.c ftepp.c hash.c intrin.c ir.c lexer.c main.c opts.c parser.c stat.c utf8.c util.c
|
||||
TSRCS = ansi.c conout.c fs.c hash.c opts.c stat.c test.c util.c
|
||||
VSRCS = ansi.c exec.c fs.c hash.c stat.c util.c
|
||||
|
||||
COBJS = $(CSRCS:.c=.o)
|
||||
TOBJS = $(TSRCS:.c=.o)
|
||||
VOBJS = $(VSRCS:.c=.o)
|
||||
|
||||
CDEPS = $(CSRCS:.c=.d)
|
||||
TDEPS = $(TSRCS:.c=.d)
|
||||
VDEPS = $(VSRCS:.c=.d)
|
||||
|
||||
CBIN = gmqcc
|
||||
TBIN = testsuite
|
||||
VBIN = qcvm
|
||||
|
||||
all: $(CBIN) $(TBIN)
|
||||
all: $(CBIN) $(TBIN) $(VBIN)
|
||||
|
||||
$(CBIN): $(COBJS)
|
||||
$(CC) $(COBJS) $(LDFLAGS) -o $@
|
||||
|
@ -22,15 +26,19 @@ $(CBIN): $(COBJS)
|
|||
$(TBIN): $(TOBJS)
|
||||
$(CC) $(TOBJS) $(LDFLAGS) -o $@
|
||||
|
||||
$(VBIN): $(VOBJS)
|
||||
$(CC) $(VOBJS) $(LDFLAGS) -o $@
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
test: $(CBIN) $(TBIN)
|
||||
test: $(CBIN) $(TBIN) $(VBIN)
|
||||
@./$(TBIN)
|
||||
|
||||
clean:
|
||||
rm -f *.d
|
||||
rm -f $(COBJS) $(CDEPS) $(CBIN)
|
||||
rm -f $(TOBJS) $(TDEPS) $(TBIN)
|
||||
rm -f $(VOBJS) $(VDEPS) $(VBIN)
|
||||
|
||||
-include *.d
|
||||
|
|
Loading…
Reference in a new issue