1 # Copyright © 2001-2003, The AROS Development Team. All rights reserved.
4 # Makefile to build the ADF library.
6 include $(TOP)/config/make.cfg
11 adf_hd adf_disk adf_raw adf_bitm adf_dump adf_util adf_env \
12 adf_dir adf_file adf_cache adf_link adf_salv
14 OBJDIR := $(GENDIR)/tools/host_adflib
15 OBJS := $(patsubst %, $(OBJDIR)/%.o, $(SRCS))
16 DEPS := $(patsubst %, $(OBJDIR)/%.d, $(SRCS))
19 HOST_CFLAGS := $(HOST_CFLAGS) -Wall -I. -IAROS -O2 -I${NATIV_DIR} -I$(OBJDIR)
25 all : depend $(OBJDIR) $(ADFLIB)
27 $(ADFLIB) : $(OBJS) $(OBJDIR)/adf_nativ.o
28 @$(ECHO) "Creating adflib/$(notdir $@)..."
32 $(OBJDIR)/%.o : %.c $(OBJDIR) AROS/defendian.h
33 @$(ECHO) "Compiling $(notdir $@)..."
34 @$(HOST_CC) $(HOST_CFLAGS) -o $@ -c $<
36 $(OBJDIR)/%.d : %.c $(OBJDIR) AROS/defendian.h
37 @$(ECHO) "Finding dependencies for $<..."
38 @$(HOST_CC) $(HOST_CFLAGS) -M $< > $@
40 $(OBJDIR)/adf_nativ.o: $(OBJDIR) $(NATIV_DIR)/adf_nativ.c $(NATIV_DIR)/adf_nativ.h
41 @$(HOST_CC) $(HOST_CFLAGS) -c $(NATIV_DIR)/adf_nativ.c -o $@
47 @$(RM) -f $(ADFLIB) $(OBJDIR)