From 96231086795cbf68f01148e8d1e65a28e3581a66 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 11 Feb 2003 05:09:24 +0000 Subject: * All nonsegemented model animations now triggered with the exception of PAIN[12] * Makefile altered to define __GAME__, __CGAME__ and __UI__ --- Makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 010c3867..00998654 100644 --- a/Makefile +++ b/Makefile @@ -158,6 +158,12 @@ Q3ASM=q3asm Q3ASM_FLAGS= +# --source level flags-- + +SLF_GAME_FLAGS=-D__GAME__ +SLF_CGAME_FLAGS=-D__CGAME__ +SLF_UI_FLAGS=-D__UI__ + # --main targets-- all: release debug qvm @@ -244,39 +250,39 @@ $(BQ)/ui.qvm: $(UIQVMOBJ) $(BQ)/$(GDIRNAME)/bg_lib.asm # --rules for the objects-- #release g_*.o $(BR)/$(GDIRNAME)/%.o: $(GDIR)/%.c - $(CC) $(RELEASE_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + $(CC) $(RELEASE_CFLAGS) $(SLF_GAME_FLAGS) $(SHLIBCFLAGS) -o $@ -c $< #debug g_*.o $(BD)/$(GDIRNAME)/%.o: $(GDIR)/%.c - $(CC) $(DEBUG_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + $(CC) $(DEBUG_CFLAGS) $(SLF_GAME_FLAGS) $(SHLIBCFLAGS) -o $@ -c $< #qvm g_*.asm $(BQ)/$(GDIRNAME)/%.asm: $(GDIR)/%.c - $(LCC) $(LCC_FLAGS) $(LCC_INCLUDES) -o $@ $< + $(LCC) $(LCC_FLAGS) $(SLF_GAME_FLAGS) $(LCC_INCLUDES) -o $@ $< #release cg_*.o $(BR)/$(CGDIRNAME)/%.o: $(CGDIR)/%.c - $(CC) $(RELEASE_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + $(CC) $(RELEASE_CFLAGS) $(SLF_CGAME_FLAGS) $(SHLIBCFLAGS) -o $@ -c $< #debug cg_*.o $(BD)/$(CGDIRNAME)/%.o: $(CGDIR)/%.c - $(CC) $(DEBUG_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + $(CC) $(DEBUG_CFLAGS) $(SLF_CGAME_FLAGS) $(SHLIBCFLAGS) -o $@ -c $< #qvm cg_*.asm $(BQ)/$(CGDIRNAME)/%.asm: $(CGDIR)/%.c - $(LCC) $(LCC_FLAGS) $(LCC_INCLUDES) -o $@ $< + $(LCC) $(LCC_FLAGS) $(SLF_CGAME_FLAGS) $(LCC_INCLUDES) -o $@ $< #release ui_*.o $(BR)/$(UIDIRNAME)/%.o: $(UIDIR)/%.c - $(CC) $(RELEASE_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + $(CC) $(RELEASE_CFLAGS) $(SLF_UI_FLAGS) $(SHLIBCFLAGS) -o $@ -c $< #debug ui_*.o $(BD)/$(UIDIRNAME)/%.o: $(UIDIR)/%.c - $(CC) $(DEBUG_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + $(CC) $(DEBUG_CFLAGS) $(SLF_UI_FLAGS) $(SHLIBCFLAGS) -o $@ -c $< #qvm ui_*.asm $(BQ)/$(UIDIRNAME)/%.asm: $(UIDIR)/%.c - $(LCC) $(LCC_FLAGS) $(LCC_INCLUDES) -o $@ $< + $(LCC) $(LCC_FLAGS) $(SLF_UI_FLAGS) $(LCC_INCLUDES) -o $@ $< # --cleaning rules-- -- cgit