Fixed to work with ABIv1.
[AROS.git] / tools / genmodule / Makefile
blob7f5207a96c6a8918d7e7a96e7fcce198beda5c93
1 # Copyright © 2002-2009, The AROS Development Team. All rights reserved.
2 # $Id$
4 # Desc: Makefile to create genmodule
7 USER_CFLAGS := -Wall -Werror -Wunused -O2
9 -include $(TOP)/config/make.cfg
10 include Makefile.deps
12 HOST_CC ?= gcc
13 HOST_STRIP ?= strip
14 MECHO ?= echo
15 HOST_CFLAGS ?= $(USER_CFLAGS)
16 GENMODULE ?= genmodule
18 all : $(GENMODULE)
20 $(GENMODULE) : $(GENMODULE_DEPS)
21 @$(MECHO) "Compiling $(notdir $@)..."
22 @$(HOST_CC) -g $(HOST_CFLAGS) -I$(GENINCDIR) -I$(TOP)/$(CURDIR) $(GENMODULE_SRCS) -o $@
23 # @$(HOST_CC) -E $(HOST_CFLAGS) -I$(GENINCDIR) -I$(TOP)/$(CURDIR) $(GENMODULE_SRCS) -o $@.C
24 # @$(HOST_STRIP) $@
26 clean :
27 @$(RM) $(GENMODULE)
29 .PHONY : all clean