2 #########################
6 #########################
9 # Include the subdirectories--order is not important.
13 include $(dir)/rules.mk
16 include $(dir)/rules.mk
20 # Define rules and targets for Yoink.
38 OBJS_$(d) += $(d)/yoink.o
41 TGTS_$(d) := $(d)/yoink$(EXEEXT)
42 DEPS_$(d) := $(OBJS_$(d):%=%.d)
44 TGT_BIN := $(TGT_BIN) $(TGTS_$(d))
45 CLEAN := $(CLEAN) $(OBJS_$(d)) $(DEPS_$(d)) $(TGTS_$(d))
48 $(OBJS_$(d)): CF_TGT := -I$(d)
49 $(OBJS_$(d)): $(d)/rules.mk
51 $(TGTS_$(d)): $(OBJS_$(d)) $(d)/moof/libmoof.a $(d)/stlplus/libstlplus.a
56 # Define the run and debug targets.
59 YOINK_ENVIRONMENT = YOINK_DATADIR="./data"
63 @$(YOINK_ENVIRONMENT) $< $(YOINK_OPTS)
67 @$(YOINK_ENVIRONMENT) gdb $<
70 #######################
72 d := $(dirstack_$(sp))
73 sp := $(basename $(sp))
74 #######################