1 include $(TOP
)/config
/make.cfg
5 DEBUG_OPTS
:= -g
-DDEBUG
=0
9 ifeq ($(AROS_HOST_ARCH
),mingw32
)
13 AFSSRCDIR
:= $(SRCDIR
)/rom
/devs
/filesys
/afs
14 ifneq ($(HOSTGENDIR
),)
15 OBJDIR
:= $(HOSTGENDIR
)/tools
/host_copytoafs
17 OBJDIR
:= .
/tools
/host_copytoafs
19 OBJS
:= $(patsubst %, $(OBJDIR
)/%.o
, $(FILES
))
20 DEPS
:= $(patsubst %, $(OBJDIR
)/%.d
, $(FILES
))
22 INCLUDES
:= -I
$(AFSSRCDIR
) -I
$(OBJDIR
)
23 HOST_CFLAGS
:= $(HOST_CFLAGS
) $(DEBUG_OPTS
) -Wall
-Werror-implicit-function-declaration
$(INCLUDES
) -O2
29 .PHONY
: all depend
clean
31 all: depend
$(OBJDIR
) $(COPYTOAFS
)
34 @
$(ECHO
) "Linking $@..."
35 $(HOST_CC
) $(OBJS
) $(AFSLIB
) -o
$@
$(LIBS
)
37 $(OBJDIR
)/config.h
: $(OBJDIR
) myconf.aros
38 @.
/myconf.aros
$(TOP
) >> $@
40 $(OBJDIR
)/%.o
: %.c
$(OBJDIR
)/config.h
41 @
$(ECHO
) "Compiling $(notdir $@)..."
42 @
$(HOST_CC
) $(HOST_CFLAGS
) -o
$@
-c
$<
44 $(OBJDIR
)/%.d
: %.c
$(OBJDIR
)/config.h
45 @
$(ECHO
) "Finding dependencies for $<..."
46 @
$(HOST_CC
) $(HOST_CFLAGS
) -M
-MT
'$(patsubst %.d,%.o,$@)' $< > $@
52 @
$(RM
) -f
$(COPYTOAFS
) $(OBJDIR
)