2003-10-22 09:24:50 +00:00
|
|
|
SRC= buttons.r builtins.r client.r combat.r defs.r doors.r dynlight.r \
|
|
|
|
flash.r items.r misc.r observe.r plats.r player.r poxdefs.r sectrig.r \
|
|
|
|
server.r shields.r specfx.r spectate.r subs.r targid.r triggers.r \
|
|
|
|
wall.r weapons.r world.r
|
|
|
|
|
|
|
|
HEADERS = client.rh paroxysm.rh config.rh
|
|
|
|
|
2004-02-11 07:21:30 +00:00
|
|
|
RFLAGS += -DQUAKEWORLD -Wall -Werror -g
|
2003-10-22 23:29:34 +00:00
|
|
|
QFCC = qfcc
|
2003-10-22 09:24:50 +00:00
|
|
|
|
|
|
|
INSTALLDIR = $(HOME)/.quake/paroxysm/
|
|
|
|
|
2003-10-22 23:29:34 +00:00
|
|
|
OBJ = $(addsuffix .o,$(basename $(SRC)))
|
|
|
|
DEP = $(addprefix .deps/,$(addsuffix .d,$(basename $(SRC))))
|
|
|
|
|
|
|
|
%.o: %.r
|
|
|
|
@mkdir -p .deps
|
|
|
|
@$(QFCC) -M -q $(RFLAGS) -c $< | sed -e 's/\(\.r\)\?\.o\>/.o/' > .deps/`basename $@ .o`.d
|
|
|
|
$(QFCC) $(RFLAGS) -q -c -o $@ $<
|
|
|
|
|
2003-10-22 09:24:50 +00:00
|
|
|
all: qwprogs.dat
|
|
|
|
|
2003-10-22 23:29:34 +00:00
|
|
|
qwprogs.dat: $(OBJ)
|
|
|
|
qfcc -o qwprogs.dat $(OBJ)
|
2003-10-22 09:24:50 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-22 23:29:34 +00:00
|
|
|
-rm -f *.dat *.sym progdefs.h *.o
|
|
|
|
-rm -rf .deps
|
2003-10-22 09:24:50 +00:00
|
|
|
|
|
|
|
install: qwprogs.dat
|
|
|
|
-cp qwprogs.* $(INSTALLDIR)
|
|
|
|
|
|
|
|
.PHONY: clean install
|
2003-10-22 23:29:34 +00:00
|
|
|
|
|
|
|
-include $(DEP)
|