1 # Copyright © 1995-2014, The AROS Development Team. All rights reserved.
2 # $Id: Makefile 44507 2012-04-03 16:09:41Z mazze $
4 # Desc: Makefile for FlexCat
7 include $(TOP)/config/make.cfg
9 USER_CFLAGS := -Wall -Werror -Wunused -O2
27 OBJDIR := $(HOSTGENDIR)/tools/flexcat
29 SDFILES := C_h_aros.sd C_c_orig.sd C_h_orig.sd gcccatcomp.sd
30 SD_OUT := $(foreach f,$(SDFILES),$(TOOLDIR)/$(f))
33 all: $(OBJDIR) $(FLEXCAT) $(SD_OUT)
35 $(FLEXCAT) : $(addprefix $(OBJDIR)/,$(OBJS))
36 @$(ECHO) "Linking $(notdir $@)..."
37 @$(HOST_CC) $(HOST_LDFLAGS) $^ -o $@
41 @$(ECHO) "Compiling flexcat/src/$(notdir $@)..."
42 @$(HOST_CC) -MM -MP -MT '$@' -MF $(OBJDIR)/$(subst .c,.d,$<) $(HOST_CFLAGS) $<
43 @$(HOST_CC) -DNOERRORONWARN $(HOST_CFLAGS) -o $@ -c $<
45 $(TOOLDIR)/%.sd : sd/%.sd
49 @$(MKDIR) -p $(OBJDIR)
53 @$(RM) -rf $(OBJDIR) $(FLEXCAT)
55 -include $(OBJS:%.o=$(OBJDIR)/%.d)