mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Fix dependency file trying to be made for SRB2.res and not for interface/blua/hardware files
This commit is contained in:
parent
2a9cb311b3
commit
0bd0b98909
1 changed files with 21 additions and 2 deletions
23
src/Makefile
23
src/Makefile
|
|
@ -554,7 +554,7 @@ OBJS:=$(i_main_o) \
|
||||||
$(i_sound_o) \
|
$(i_sound_o) \
|
||||||
$(OBJS)
|
$(OBJS)
|
||||||
|
|
||||||
DEPS:=$(patsubst $(OBJDIR)/%.o,$(DEPDIR)/%.d,$(OBJS))
|
DEPS:=$(patsubst $(OBJDIR)/%.o,$(DEPDIR)/%.d,$(filter %.o,$(OBJS)))
|
||||||
OBJS+=$(OBJDIR)/comptime.o
|
OBJS+=$(OBJDIR)/comptime.o
|
||||||
|
|
||||||
ifndef SILENT
|
ifndef SILENT
|
||||||
|
|
@ -688,14 +688,33 @@ $(call print,Checking dependency files...)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(DEPDIR)/%.d: %.c
|
undefine deps_rule
|
||||||
|
|
||||||
# windows makes it too hard !
|
# windows makes it too hard !
|
||||||
ifndef WINDOWSHELL
|
ifndef WINDOWSHELL
|
||||||
ifdef echoName
|
ifdef echoName
|
||||||
|
define deps_rule =
|
||||||
@printf "%-20.20s\r" $<
|
@printf "%-20.20s\r" $<
|
||||||
|
|
||||||
|
endef
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
define deps_rule +=
|
||||||
$(CC) $(CFLAGS) -M -MF $@ -MT $(OBJDIR)/$< $<
|
$(CC) $(CFLAGS) -M -MF $@ -MT $(OBJDIR)/$< $<
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(DEPDIR)/%.d: %.c
|
||||||
|
$(deps_rule)
|
||||||
|
|
||||||
|
$(DEPDIR)/%.d: $(INTERFACE)/%.c
|
||||||
|
$(deps_rule)
|
||||||
|
|
||||||
|
$(DEPDIR)/%.d: hardware/%.c
|
||||||
|
$(deps_rule)
|
||||||
|
|
||||||
|
$(DEPDIR)/%.d: blua/%.c
|
||||||
|
$(deps_rule)
|
||||||
|
|
||||||
ifdef VALGRIND
|
ifdef VALGRIND
|
||||||
$(OBJDIR)/z_zone.o: z_zone.c
|
$(OBJDIR)/z_zone.o: z_zone.c
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue