quakeforge/tools/qwaq/Makefile

30 lines
458 B
Makefile
Raw Normal View History

2001-06-01 21:59:46 +00:00
EXE=qwaq
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
CFLAGS+=-Wall -Werror -g -O2
CPPFLAGS+=
LIBS=
vpath %.a
SRC=main.c builtins.c
%.d: %.c
$(MAKEDEPS)
OBJ=$(patsubst %,%.o,$(basename $(SRC)))
DEP=$(patsubst %.o,%.d,$(OBJ))
2001-06-01 22:05:36 +00:00
all: $(EXE) $(EXE).dat
$(EXE): $(OBJ) $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ -lQFgamecode -lQFutil
2001-06-01 22:05:36 +00:00
$(EXE).dat: progs.src *.qc
qfcc
clean:
rm -f $(EXE) *.o *.d core *.dat progdefs.h
-include $(DEP)