2001-06-01 21:59:46 +00:00
|
|
|
EXE=qwaq
|
2001-06-01 21:57:59 +00:00
|
|
|
|
|
|
|
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
|
|
|
|
|
|
|
|
CFLAGS+=-Wall -Werror -g -O2
|
|
|
|
CPPFLAGS+=
|
2002-01-30 17:41:16 +00:00
|
|
|
#LDFLAGS=-static
|
2001-06-01 21:57:59 +00:00
|
|
|
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
|
2001-06-01 21:57:59 +00:00
|
|
|
|
|
|
|
$(EXE): $(OBJ) $(LIBS)
|
2002-01-30 17:41:16 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ -lQFgamecode -lQFutil -lz -lm
|
2001-06-01 21:57:59 +00:00
|
|
|
|
2001-06-01 22:05:36 +00:00
|
|
|
$(EXE).dat: progs.src *.qc
|
2001-11-02 03:03:01 +00:00
|
|
|
qfcc --warn=error --code=debug
|
2001-06-01 22:05:36 +00:00
|
|
|
|
2001-06-01 21:57:59 +00:00
|
|
|
clean:
|
2001-07-14 23:52:56 +00:00
|
|
|
rm -f $(EXE) *.o *.d core *.dat *.sym progdefs.h
|
2001-06-01 21:57:59 +00:00
|
|
|
|
|
|
|
-include $(DEP)
|