Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / stubs / mmakefile.src
blobaeafdf5960e396b057a0d1c413d13478acd51032
1 # $Id$
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)
9 GENSTUBS        := genstubs
11 #MM
12 clib-stubs : $(OBJS)
14 #MM
15 clib-stubs-clean : clean
17 #MM
18 clean ::
19         -$(RM) $(STUBSDIR)
21 $(OBJS) $(STUBS) : | $(STUBSDIR)
22 %rule_makedirs dirs=$(STUBSDIR)
24 $(OBJS) : $(STUBSDIR)/%.o : $(STUBSDIR)/%.S
25         %assemble_q
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/machine.h | $(STUBSDIR)
32         @$(HOST_CC) $(HOST_CFLAGS) -I$(GENINCDIR) $< -o $@
34 %common