Indentation fix, cleanup.
[AROS.git] / tools / ilbmtoicon / Makefile
blobcfc7b57f2673c58560bbbc30fcdf2bbaf912c0ed
1 # Copyright © 1995-2012, The AROS Development Team. All rights reserved.
2 # $Id$
4 # Desc: Makefile for ilbmtoicon
7 -include $(TOP)/config/make.cfg
9 HOST_LIBPNG ?= -Lpng
10 HOST_LIBPNG_INCLUDES ?=
11 HOST_LIBPNG_LIBEXTRA ?=
13 USER_CFLAGS := -Wall -Wunused -O2
15 HOST_CC ?= $(CC)
16 HOST_STRIP ?= strip
17 ILBMTOICON ?= ilbmtoicon
18 INFOINFO ?= infoinfo
19 MECHO ?= echo
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).
26 EXTRALIBS1 := -lz
28 ifneq ($(HOST_LIBPNG_INCLUDES),)
29 HOST_CFLAGS += $(HOST_LIBPNG_INCLUDES)
30 endif
31 ifneq ($(HOST_LIBPNG_LIBEXTRA),)
32 HOST_LDFLAGS += $(HOST_LIBPNG_LIBEXTRA)
33 else
34 EXTRALIBS1 := $(HOST_LIBPNG) $(EXTRALIBS1)
35 endif
37 all : $(ILBMTOICON) $(INFOINFO)
39 $(ILBMTOICON) : ilbmtoicon.c
40 @$(ECHO) "Compiling $(notdir $@)..."
41 @$(HOST_CC) $(HOST_CFLAGS) $< -o $@ $(HOST_LDFLAGS) $(EXTRALIBS1)
42 @$(HOST_STRIP) $@
44 $(INFOINFO) : infoinfo.c
45 @$(ECHO) "Compiling $(notdir $@)..."
46 @$(HOST_CC) $(HOST_CFLAGS) $< -o $@ $(HOST_LDFLAGS)
47 @$(HOST_STRIP) $@
49 clean:
50 @$(RM) -f $(ILBMTOICON)
51 @$(RM) -f $(INFOINFO)