1 # Copyright © 2000-2008, The AROS Development Team. All rights reserved.
4 # Makefile to build collect-aros.
6 USER_CFLAGS
+= -Wall
-Wunused
-O2
7 -include $(TOP
)/config
/make.cfg
12 COLLECT-AROS ?
= collect-aros
14 COLLECT-AROS-BACKEND ?
= backend-generic.c
15 COLLECT-AROS-DOCOMMAND ?
= docommand-exec.c
17 COLLECT-AROS-DIR
:= $(TOP
)/tools
/collect-aros
21 COLLECT_CFLAGS ?
= $(USER_CFLAGS
) -I
$(COLLECT-AROS-DIR
)
23 ifeq ($(AROS_HOST_ARCH
),aros
)
24 COLLECT_CFLAGS
+= -D_HAVE_LIBIBERTY_
25 HOST_LDFLAGS
+= -lbfd
-liberty
-lz
26 COLLECT-AROS-BACKEND
:= backend-bfd.c
27 COLLECT-AROS-DOCOMMAND
:= docommand-spawn.c
32 COLLECT-AROS-FILES
:= collect-aros.c gensets.c misc.c
$(COLLECT-AROS-BACKEND
) \
33 $(COLLECT-AROS-DOCOMMAND
)
34 $(COLLECT-AROS
) : misc.h ldscript.h gensets.h docommand.h backend.h
$(COLLECT-AROS-DIR
)/env.h
35 $(COLLECT-AROS
) : $(COLLECT-AROS-FILES
)
36 @
$(MECHO
) "Compiling $(notdir $@)..."
37 @
$(HOST_CC
) -o
$@
$(COLLECT_CFLAGS
) $(COLLECT-AROS-FILES
) $(HOST_LDFLAGS
)
41 @
$(RM
) $(COLLECT-AROS
)