clean up some makefile issues. (NicJA)
[AROS.git] / arch / all-unix / hidd / unixio / mmakefile.src
blob874ea3824f914d0a2e74008afe111d8409eac929
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 #MM kernel-unixio : kernel-kernel-includes hidd-unixio-stubs
6 #MM kernel-unixio-kobj : kernel-kernel-includes hidd-unixio-stubs
8 USER_CPPFLAGS := -DHOST_OS_$(ARCH) -DHOST_OS_$(AROS_TARGET_VARIANT)
9 USER_INCLUDES := -DAROS_ARCHITECTURE="\"$(AROS_TARGET_PLATFORM)\"" \
10                -isystem $(GENINCDIR) $(KERNEL_INCLUDES)
12 ifeq ($(ARCH),darwin)
13 USER_CPPFLAGS += -D_FORTIFY_SOURCE=0
14 endif
16 ## The '-Wno-attributes' is here due to a gcc 4.5.x bug
17 ## where its strcmp() builtin generates a number of spurious
18 ## complaints with -O1 or higher optimizations enabled.
19 USER_CFLAGS += -Wno-attributes
21 USER_LDFLAGS := -static
23 #MM- includes-generate: kernel-unixio-includes
25 %build_module mmake=kernel-unixio \
26     modname=unixio modtype=hidd version=$(AROS_TARGET_PLATFORM) \
27     files="unixio_class unixpkt_class" archspecific=yes
29 MY_INCLS := $(call WILDCARD, include/*.h)
30 DEST_INC := $(foreach f,$(MY_INCLS), $(AROS_INCLUDES)/hidd/$(notdir $f))
31 GEN_INC  := $(foreach f,$(MY_INCLS), $(GENINCDIR)/hidd/$(notdir $f))
33 INCLUDE_FILES    := $(call WILDCARD, include/*.h)
35 %copy_includes path=hidd dir=include
37 %common