grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / mouse / mmakefile.src
blob12d460916b2cbea042ef9d7ded86fa20a0e4f88c
1 #$Id$
3 include $(SRCDIR)/config/aros.cfg
5 MY_INCLS    := $(call WILDCARD, include/*.h)
6 DEST_INC    := $(foreach f,$(MY_INCLS), $(AROS_INCLUDES)/hidd/$(notdir $f))
7 GEN_INC     := $(foreach f,$(MY_INCLS), $(GENINCDIR)/hidd/$(notdir $f))
9 #MM
10 includes-copy : $(DEST_INC) $(GEN_INC)
11         @$(NOP)
13 $(AROS_INCLUDES)/hidd/%.h : include/%.h
14         @$(CP) $< $@
16 $(GENINCDIR)/hidd/%.h : include/%.h
17         @$(CP) $< $@
19 #MM
20 setup-includes :
21         %mkdirs_q $(GENINCDIR) $(AROS_INCLUDES) $(GENINCDIR)/hidd $(AROS_INCLUDES)/hidd
23 #MM
24 clean ::
25         -$(RM) $(OBJDIR) *.err $(LIB) *.s
27 FILES := mouse_init driverdata mouseclass subsystem
29 USER_CFLAGS += -D__OOP_NOLIBBASE__ -D__UTILITY_NOLIBBASE__
30 USER_LDFLAGS := -static
32 %build_module mmake=kernel-hidd-mouse \
33     modname=mouse modtype=hidd \
34     files="$(FILES)"
36 %common