picture.datatype: gi_RastPort should not be directly accessed
[AROS.git] / tools / ilbmtoicon / Makefile
blob69a330a7475cc996339cf85899cfbfea032a518b
1 # Copyright © 1995-2011, The AROS Development Team. All rights reserved.
2 # $Id$
4 # Desc: Makefile for ilbmtoicon
7 -include $(TOP)/config/make.cfg
9 USER_CFLAGS := -Wall -Wunused -O2
11 HOST_CC ?= $(CC)
12 HOST_STRIP ?= strip
13 ILBMTOICON ?= ilbmtoicon
14 INFOINFO ?= infoinfo
15 MECHO ?= echo
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/
24 endif
26 ifeq ($(AROS_HOST_ARCH),mingw32)
27 EXTRALIBS2 := -lws2_32
28 endif
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)
40 @$(HOST_STRIP) $@
42 $(INFOINFO) : infoinfo.c
43 @$(ECHO) "Compiling $(notdir $@)..."
44 @$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $< -o $@ $(EXTRALIBS2)
45 @$(HOST_STRIP) $@
47 clean:
48 @$(RM) -f $(ILBMTOICON)