1 # Copyright © 1995-2001, The AROS Development Team. All rights reserved.
20 -include $(TOP)/config/make.cfg
22 # These are the compatibility variables. They will only be defined
23 # if including $(TOP)/config/make.cfg fails (since they will then
29 ifneq ($(HOSTGENDIR),)
30 OBJDIR=$(HOSTGENDIR)/$(subst $(SRCDIR)/,,$(CURDIR))
32 CIFFLIBDIR=$(HOSTDIR)/lib
40 CIFFLIB ?= $(TOOLDIR)/libc_iff.a
41 HOST_CFLAGS := $(HOST_CFLAGS) -Wall -g -DHAVE_VSNPRINTF -I.. -O
44 DEPS := $(foreach f,$(SRC),$(OBJDIR)/$(f).d)
46 all : depend $(OBJDIR) $(CIFFLIB)
48 $(CIFFLIB) : $(foreach f,$(SRC),$(OBJDIR)/$(f).o)
49 @$(MECHO) "Creating c_iff/$(notdir $@)..."
53 @$(MECHO) "Compiling c_iff/$(notdir $@)..."
54 @$(HOST_CC) $(HOST_CFLAGS) -o $@ -c $<
57 @$(MECHO) Finding dependencies for $<...
58 @$(MKDIR) -p $(dir $@)
59 @$(HOST_CC) $(HOST_CFLAGS) -M $< > $@
67 @perl autodoc.pl *.c >c_iff.txt
69 example : $(OBJDIR)/example.o $(CIFFLIB) hot.iff
70 @$(HOST_CC) $(HOST_CFLAGS) $(INCL) -o $@ example.o -L$(TOOLDIR) -lc_iff
73 @$(RM) $(CIFFLIB) $(OBJDIR)/*.o c_iff.txt example test1.iff