Bring back darwin hosted port to live, might also work for android hosted but is...
[AROS.git] / arch / all-unix / hidd / unixio / mmakefile.src
blob0b19a25a79304d7de19f16a39d234f7f2634596a
1 # $Id$
2 include $(TOP)/config/make.cfg
4 #MM kernel-unixio : kernel-kernel-includes hidd-unixio-stubs
5 #MM kernel-unixio-kobj : kernel-kernel-includes hidd-unixio-stubs
7 USER_CFLAGS := -DHOST_OS_$(ARCH) -DHOST_OS_$(AROS_TARGET_VARIANT) \
8                -DAROS_ARCHITECTURE="\"$(AROS_TARGET_PLATFORM)\"" \
9                -isystem $(GENINCDIR) $(KERNEL_INCLUDES)
11 ## The '-Wno-attributes' is here due to a gcc 4.5.x bug
12 ## where its strcmp() builtin generates a number of spurious
13 ## complaints with -O1 or higher optimizations enabled.
14 USER_CFLAGS += -Wno-attributes
16 %build_module mmake=kernel-unixio \
17     modname=unixio modtype=hidd version=$(AROS_TARGET_PLATFORM) \
18     files=unixio_class uselibs="oop rom"
20 MY_INCLS := $(call WILDCARD, include/*.h)
21 DEST_INC := $(foreach f,$(MY_INCLS), $(AROS_INCLUDES)/hidd/$(notdir $f))
22 GEN_INC  := $(foreach f,$(MY_INCLS), $(GENINCDIR)/hidd/$(notdir $f))
24 #MM
25 includes-copy : $(DEST_INC) $(GEN_INC)
27 $(AROS_INCLUDES)/hidd/%.h : include/%.h
28         $(CP) $< $@
30 $(GENINCDIR)/hidd/%.h : include/%.h
31         $(CP) $< $@
33 #MM
34 setup-includes :
35         %mkdirs_q $(GENINCDIR) $(AROS_INCLUDES) $(GENINCDIR)/hidd $(AROS_INCLUDES)/hidd