1 # Copyright © 2002, The AROS Development Team. All rights reserved.
4 # Desc: Makefile to create genmodule
7 USER_CFLAGS
:= -Wall
-Wunused
-O2
9 -include $(TOP
)/config
/make.cfg
15 HOST_CFLAGS ?
= $(USER_CFLAGS
)
16 GENMODULE ?
= genmodule
20 GENMODULEINCLUDE
:= $(dir $(GENMODULE
))/genmod_inc
/aros
/libcall.h
22 $(GENMODULE
) : archspecific.h
$(GENMODULE_DEPS
) $(GENMODULEINCLUDE
)
23 @
$(MECHO
) "Compiling $(notdir $@)..."
24 @
$(HOST_CC
) -g
$(HOST_CFLAGS
) -I
$(GENINCDIR
) $(GENMODULE_SRCS
) -o
$@
27 $(GENMODULEINCLUDE
) : include/aros
/libcall.h
31 archspecific.h
: archspecific.c
$(AROS_INCLUDES
)/aros
/$(AROS_TARGET_CPU
)/cpu.h
33 @grep
"^[/#][*d]" archspecific.s | sed s
/@SED@
[$$]*//g
>$@
37 @
$(RM
) $(GENMODULE
) $(GENMODULEINCLUDE
)