fix filenames
[AROS.git] / tools / adflib / mmakefile.src
blob89255a442a39f42e7f24a63921a4e8d858c3f691
1 include $(TOP)/config/make.cfg
3 #MM- linklibs : linklibs-adf
5 ifeq ($(FLAVOUR),palmnative)
7 #MM linklibs-adf : includes
8 linklibs-adf :
9         @$(NOP)
11 else
13 FILES := \
14         adf_bitm \
15         adf_cache \
16         adf_dir \
17         adf_disk \
18         adf_dump \
19         adf_env \
20         adf_file \
21         adf_hd \
22         adf_link \
23         adf_raw \
24         adf_salv \
25         adf_util \
26         Generic/adf_nativ
28 endif
30 USER_INCLUDES := -I$(SRCDIR)/$(CURDIR) -I$(AROS_INCLUDES)/adf -I$(SRCDIR)/$(CURDIR)/Generic
32 %build_linklib mmake=linklibs-adf libname=adf files=$(FILES)
34 #MM
35 includes-copy : $(AROS_INCLUDES)/adf/adflib.h \
36                 $(AROS_INCLUDES)/adf/defendian.h \
37                 $(AROS_INCLUDES)/adf/hd_blk.h \
38                 $(AROS_INCLUDES)/adf/adf_blk.h \
39                 $(AROS_INCLUDES)/adf/adf_defs.h \
40                 $(AROS_INCLUDES)/adf/adf_err.h \
41                 $(AROS_INCLUDES)/adf/adf_hd.h \
42                 $(AROS_INCLUDES)/adf/adf_str.h
44 $(AROS_INCLUDES)/adf/%.h : %.h | $(AROS_INCLUDES)/adf
45         $(CP) $< $(AROS_INCLUDES)/adf
47 $(AROS_INCLUDES)/adf/defendian.h : Generic/defendian.h | $(AROS_INCLUDES)/adf
48         @$(CP) $< $@
50 GLOB_MKDIRS += $(AROS_INCLUDES)/adf
52 ### Host build
54 #MM- host-linklibs-adf: host-includes-copy
56 HOST_INCLUDES := $(CROSSTOOLSDIR)/include
58 %build_linklib mmake=host-linklibs-adf libname=adf files=$(FILES) \
59                      cflags="-I$(SRCDIR)/$(CURDIR)/Generic -I$(HOST_INCLUDES) -g3 -Wall -Werror" \
60                      compiler=host libdir="$(CROSSTOOLSDIR)/lib" \
61                      objdir=$(OBJDIR)/host
64 #MM
65 host-includes-copy : $(HOST_INCLUDES)/adf/adflib.h \
66                 $(HOST_INCLUDES)/adf/defendian.h \
67                 $(HOST_INCLUDES)/adf/hd_blk.h \
68                 $(HOST_INCLUDES)/adf/adf_blk.h \
69                 $(HOST_INCLUDES)/adf/adf_defs.h \
70                 $(HOST_INCLUDES)/adf/adf_err.h \
71                 $(HOST_INCLUDES)/adf/adf_hd.h \
72                 $(HOST_INCLUDES)/adf/adf_str.h
74 $(HOST_INCLUDES)/adf/%.h : %.h | $(HOST_INCLUDES)/adf
75         $(CP) $< $(HOST_INCLUDES)/adf
77 $(HOST_INCLUDES)/adf/defendian.h : Generic/defendian.h | $(HOST_INCLUDES)/adf
78         @$(CP) $< $@
80 GLOB_MKDIRS += $(HOST_INCLUDES)/adf
82 %common