1 include $(TOP)/config/make.cfg
5 DEBUG_OPTS := -g -DDEBUG=0
21 AFSSRCDIR := $(TOP)/workbench/devs/afs
22 OBJDIR := $(GENDIR)/tools/host_afs
23 OBJS := $(patsubst %, $(OBJDIR)/%.o, $(FILES))
24 DEPS := $(patsubst %, $(OBJDIR)/%.d, $(FILES))
26 INCLUDES := -I$(AFSSRCDIR) -I$(OBJDIR)
27 HOST_CFLAGS := $(HOST_CFLAGS) $(DEBUG_OPTS) -Wall -Werror-implicit-function-declaration $(INCLUDES) -O2
33 .PHONY: all depend clean
35 all: depend $(OBJDIR) $(AFSLIB)
38 @$(ECHO) "Creating $@..."
42 $(OBJDIR)/config.h: $(OBJDIR) myconf.aros
45 $(OBJDIR)/%.o: $(AFSSRCDIR)/%.c $(OBJDIR)/config.h
46 @$(ECHO) "Compiling $(notdir $@)..."
47 @$(HOST_CC) $(HOST_CFLAGS) -o $@ -c $<
49 $(OBJDIR)/%.d: $(AFSSRCDIR)/%.c $(OBJDIR)/config.h
50 @$(ECHO) "Finding dependencies for $<..."
51 @$(HOST_CC) $(HOST_CFLAGS) -M -MT '$(patsubst %.d,%.o,$@)' $< > $@
57 @$(RM) $(AFSLIB) $(OBJDIR)