2 include $(TOP)/config/make.cfg
4 STUBSDIR := $(GENDIR)/compiler/clib/stubs
5 FILES := $(shell ($(ECHO) '\#define SYSTEM_CALL(x, y...) x'; $(CAT) $(AROS_INCLUDES)/sys/syscall.def) | $(CPP) -P -)
6 FILES := $(foreach f,$(FILES), $(STUBSDIR)/$(f))
7 OBJS := $(foreach f,$(FILES), $(f).o)
8 STUBS := $(foreach f,$(FILES), $(f).S)
15 clib-stubs-clean : clean
21 $(OBJS) $(STUBS) : | $(STUBSDIR)
22 %rule_makedirs dirs=$(STUBSDIR)
24 $(OBJS) : $(STUBSDIR)/%.o : $(STUBSDIR)/%.S
27 $(STUBSDIR)/%.S: $(STUBSDIR)/$(GENSTUBS)
28 @$(ECHO) Generating stub function for \'$$(basename $(notdir $@))\'...
29 @$(STUBSDIR)/$(GENSTUBS) $(basename $(notdir $@)) >$@
31 $(STUBSDIR)/$(GENSTUBS) : $(GENSTUBS).c $(AROS_INCLUDES)/sys/syscall.def $(AROS_INCLUDES)/aros/cpu.h | $(STUBSDIR)
32 @$(HOST_CC) $(HOST_CFLAGS) -I$(GENINCDIR) $< -o $@