mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
34ec521198
passed through ...) and @argv (array of vectors, one for each ... param)
30 lines
555 B
Makefile
30 lines
555 B
Makefile
EXE=qwaq
|
|
|
|
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
|
|
|
|
CFLAGS+=-Wall -Werror -g -O2
|
|
CPPFLAGS+=
|
|
#LDFLAGS=-static
|
|
LIBS=
|
|
vpath %.a
|
|
|
|
SRC=main.c builtins.c
|
|
|
|
%.d: %.c
|
|
$(MAKEDEPS)
|
|
|
|
OBJ=$(patsubst %,%.o,$(basename $(SRC)))
|
|
DEP=$(patsubst %.o,%.d,$(OBJ))
|
|
|
|
all: $(EXE) $(EXE).dat
|
|
|
|
$(EXE): $(OBJ) $(LIBS)
|
|
$(CC) $(LDFLAGS) -o $@ $^ ../../d.o/libs/gamecode/engine/.libs/libQFgamecode.a -lQFutil -lz -lm
|
|
|
|
$(EXE).dat: progs.src *.qc
|
|
qfcc --warn=error --code=debug
|
|
|
|
clean:
|
|
rm -f $(EXE) *.o *.d core *.dat *.sym progdefs.h
|
|
|
|
-include $(DEP)
|