correct gcc update courtesy of NicJA.
[AROS.git] / tools / elf2hunk / Makefile
blobf3bca6d11a65eac2145e680afaf19c098ad4a2f2
1 # Copyright © 2011, The AROS Development Team. All rights reserved.
2 # $Id$
4 # Desc: Makefile for elf2hunk
7 # Things of interest.
8 SRC := elf2hunk.c
10 -include $(TOP)/config/make.cfg
12 HOST_CC ?= $(CC)
13 HOST_STRIP ?= strip
14 HOST_MKDIR ?= mkdir
15 ELF2HUNK ?= elf2hunk
16 HOST_CFLAGS ?= -Wall -g -O
17 ifeq ("${MSYSTEM}", "MINGW32")
18 MINGLIBS := -lws2_32
19 endif
21 all : $(ELF2HUNK)
23 $(ELF2HUNK) : $(SRC)
24 @$(MECHO) "Compiling $(notdir $@)..."
25 @$(HOST_CC) $(HOST_CFLAGS) $< -o $(ELF2HUNK) ${MINGLIBS}
27 clean :
28 @$(RM) $(ELF2HUNK)
30 check :
31 true
33 test : check