1 # Copyright © 1995-2011, The AROS Development Team. All rights reserved.
4 # Desc: Makefile for ilbmtoicon
7 -include $(TOP
)/config
/make.cfg
9 USER_CFLAGS
:= -Wall
-Wunused
-O2
13 ILBMTOICON ?
= ilbmtoicon
17 # Use libpng from MacPorts on MacOS X.
18 # We don't add these includes in configure script because doing so
19 # influences makecountry which uses libiconv. MacPorts libiconv has different ABI
20 # from system's one, this causes conflicts.
21 ifeq ($(AROS_HOST_ARCH
),darwin
)
22 HOST_CFLAGS
+= -isystem
/opt
/local
/include
23 HOST_LDFLAGS
+= -L
/opt
/local
/lib
/
26 ifeq ($(AROS_HOST_ARCH
),mingw32
)
27 EXTRALIBS2
:= -lws2_32
29 # linking of i386 on x86_64 doesn't work unless you make
30 # sure to have the i386 build tools for your distribution
31 # installed (including libz-dev:i386 and libpng-dev:i386
32 # or their equivalents).
33 EXTRALIBS1
:= -lpng
-lz
35 all : $(ILBMTOICON
) $(INFOINFO
)
37 $(ILBMTOICON
) : ilbmtoicon.c
38 @
$(ECHO
) "Compiling $(notdir $@)..."
39 @
$(HOST_CC
) $(HOST_CFLAGS
) $(HOST_LDFLAGS
) $< -o
$@
$(EXTRALIBS1
)
42 $(INFOINFO
) : infoinfo.c
43 @
$(ECHO
) "Compiling $(notdir $@)..."
44 @
$(HOST_CC
) $(HOST_CFLAGS
) $(HOST_LDFLAGS
) $< -o
$@
$(EXTRALIBS2
)
48 @
$(RM
) -f
$(ILBMTOICON
)