grub2: bring back build of aros-side grub2 tools
[AROS.git] / tools / adflib / mmakefile.src
blob2bf57ec4b4f097a902918083158305f80283d501
1 include $(SRCDIR)/config/aros.cfg
3 ### Host build
5 #MM- host-linklibs-adf: host-includes-copy
7 HOST_INCLUDES := $(CROSSTOOLSDIR)/include
9 %build_linklib mmake=host-linklibs-adf libname=adf files=$(FILES) \
10                      cflags="-I$(SRCDIR)/$(CURDIR)/Generic -I$(HOST_INCLUDES) -g3 -Wall -Werror" \
11                      compiler=host libdir="$(CROSSTOOLSDIR)/lib" \
12                      objdir=$(OBJDIR)/host
15 #MM
16 host-includes-copy : $(HOST_INCLUDES)/adf/adflib.h \
17                 $(HOST_INCLUDES)/adf/defendian.h \
18                 $(HOST_INCLUDES)/adf/hd_blk.h \
19                 $(HOST_INCLUDES)/adf/adf_blk.h \
20                 $(HOST_INCLUDES)/adf/adf_defs.h \
21                 $(HOST_INCLUDES)/adf/adf_err.h \
22                 $(HOST_INCLUDES)/adf/adf_hd.h \
23                 $(HOST_INCLUDES)/adf/adf_str.h
25 $(HOST_INCLUDES)/adf/%.h : %.h | $(HOST_INCLUDES)/adf
26         $(CP) $< $(HOST_INCLUDES)/adf
28 $(HOST_INCLUDES)/adf/defendian.h : Generic/defendian.h | $(HOST_INCLUDES)/adf
29         @$(CP) $< $@
31 GLOB_MKDIRS += $(HOST_INCLUDES)/adf
33 %common