1 # Copyright © 1995-2019, The AROS Development Team. All rights reserved.
4 # Desc: Makefile for ilbmtoicon
7 -include $(TOP
)/config
/make.cfg
10 HOST_LIBPNG_INCLUDES ?
=
11 HOST_LIBPNG_LIBEXTRA ?
=
13 USER_CFLAGS
:= -Wall
-Wunused
-O2
17 ILBMTOICON ?
= ilbmtoicon
21 # linking of i386 on x86_64 doesn't work unless you make
22 # sure to have the i386 build tools for your distribution
23 # installed (including libz-dev:i386 and libpng-dev:i386
24 # or their equivalents).
28 ifneq ($(HOST_LIBPNG_INCLUDES
),)
29 HOST_CFLAGS
+= $(HOST_LIBPNG_INCLUDES
)
31 ifneq ($(HOST_LIBPNG_LIBEXTRA
),)
32 HOST_LDFLAGS
+= $(HOST_LIBPNG_LIBEXTRA
)
34 EXTRALIBS1
:= $(HOST_LIBPNG
) $(EXTRALIBS1
)
37 all : $(ILBMTOICON
) $(INFOINFO
)
39 $(ILBMTOICON
) : ilbmtoicon.c
40 @
$(ECHO
) "Compiling $(notdir $@)..."
41 @
$(HOST_CC
) $(HOST_CFLAGS
) $< -o
$@
$(HOST_LDFLAGS
) $(EXTRALIBS1
)
44 $(INFOINFO
) : infoinfo.c
45 @
$(ECHO
) "Compiling $(notdir $@)..."
46 @
$(HOST_CC
) $(HOST_CFLAGS
) $< -o
$@
$(HOST_LDFLAGS
)
50 @
$(RM
) -f
$(ILBMTOICON
)