summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/Makefile.am
blob: e977b3bffa7ec963bef1cc127d4b8d3ffeaa7c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
## Proxy Makefile.am to build libgd for TeX Live.
##
##   Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
##
##   This file is free software; the copyright holder
##   gives unlimited permission to copy and/or distribute it,
##   with or without modifications, as long as this notice is preserved.
##
## We want to re-distribute the whole original libgd source tree.
##
EXTRA_DIST = $(GD_TREE)

## Changes applied to the original source tree
##
EXTRA_DIST += $(GD_TREE)-PATCHES

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir) -name .svn -o -name .deps -o -name .dirstamp -o -name '*.$(OBJEXT)'`

SUBDIRS = . include

AM_CPPFLAGS = -I$(top_srcdir)/$(GD_TREE)/src
if WIN32
AM_CPPFLAGS += -DNONDLL -DBGDWIN32
endif WIN32
AM_CPPFLAGS += $(ZLIB_INCLUDES) $(LIBPNG_INCLUDES) $(FREETYPE2_INCLUDES)
AM_CFLAGS = # $(WARNING_CFLAGS)

noinst_LIBRARIES=libgd.a

libgd_a_SOURCES = \
	@GD_TREE@/src/gd.c \
	@GD_TREE@/src/gd_bmp.c \
	@GD_TREE@/src/gd_color.c \
	@GD_TREE@/src/gd_color_map.c \
	@GD_TREE@/src/gd_color_match.c \
	@GD_TREE@/src/gd_crop.c \
	@GD_TREE@/src/gd_filename.c \
	@GD_TREE@/src/gd_filter.c \
	@GD_TREE@/src/gd_gd.c \
	@GD_TREE@/src/gd_gd2.c \
	@GD_TREE@/src/gd_gif_in.c \
	@GD_TREE@/src/gd_gif_out.c \
	@GD_TREE@/src/gd_interpolation.c \
	@GD_TREE@/src/gd_io.c \
	@GD_TREE@/src/gd_io_dp.c \
	@GD_TREE@/src/gd_io_file.c \
	@GD_TREE@/src/gd_io_ss.c \
	@GD_TREE@/src/gd_jpeg.c \
	@GD_TREE@/src/gd_matrix.c \
	@GD_TREE@/src/gd_nnquant.c \
	@GD_TREE@/src/gd_png.c \
	@GD_TREE@/src/gd_rotate.c \
	@GD_TREE@/src/gd_security.c \
	@GD_TREE@/src/gd_ss.c \
	@GD_TREE@/src/gd_tga.c \
	@GD_TREE@/src/gd_tiff.c \
	@GD_TREE@/src/gd_topal.c \
	@GD_TREE@/src/gd_transform.c \
	@GD_TREE@/src/gd_version.c \
	@GD_TREE@/src/gd_wbmp.c \
	@GD_TREE@/src/gd_webp.c \
	@GD_TREE@/src/gd_xbm.c \
	@GD_TREE@/src/gdcache.c \
	@GD_TREE@/src/gdfontg.c \
	@GD_TREE@/src/gdfontl.c \
	@GD_TREE@/src/gdfontmb.c \
	@GD_TREE@/src/gdfonts.c \
	@GD_TREE@/src/gdfontt.c \
	@GD_TREE@/src/gdft.c \
	@GD_TREE@/src/gdfx.c \
	@GD_TREE@/src/gdhelpers.c \
	@GD_TREE@/src/gdkanji.c \
	@GD_TREE@/src/gdtables.c \
	@GD_TREE@/src/gdxpm.c \
	@GD_TREE@/src/wbmp.c \
	@GD_TREE@/src/webpimg.c

$(libgd_a_OBJECTS): config.force

if build
check_PROGRAMS = gdtest
dist_check_SCRIPTS = libgd.test
TESTS = libgd.test
endif build

gdtest_SOURCES = gdtest.c

gdtest_CPPFLAGS = -Iinclude -DBGDWIN32 -DNONDLL

LDADD = libgd.a

## Rebuild libpng
@LIBPNG_RULE@
## Rebuild libfreetype
@FREETYPE2_RULE@

# Reconfig
reconfig_prereq = $(LIBPNG_DEPEND) $(FREETYPE2_DEPEND)
DISTCLEANFILES =

include $(srcdir)/../../am/reconfig.am

# Rebuild
rebuild_prereq =
rebuild_target = all
CLEANFILES =

include $(srcdir)/../../am/rebuild.am