game-source/ParoxysmII/source/Makefile

36 lines
847 B
Makefile
Raw Normal View History

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
RFLAGS += -DQUAKEWORLD -Wall -Werror -g
2003-10-22 23:29:34 +00:00
QFCC = qfcc
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 $@ $<
all: qwprogs.dat
2003-10-22 23:29:34 +00:00
qwprogs.dat: $(OBJ)
qfcc -o qwprogs.dat $(OBJ)
clean:
2003-10-22 23:29:34 +00:00
-rm -f *.dat *.sym progdefs.h *.o
-rm -rf .deps
install: qwprogs.dat
-cp qwprogs.* $(INSTALLDIR)
.PHONY: clean install
2003-10-22 23:29:34 +00:00
-include $(DEP)