blob: f3be370595c1f59b77c26712706f9c415d444fce (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# Makefile form Microsoft C++ nmake.exe
# $Id: Makefile,v 1.5.2.5 2007/04/24 14:24:53 pajoye Exp $
EXTRA_INCLUDE=C:\\gd_build\\gd_deps\\include
EXTRA_LIBS=/libpath:C:\\gd_build\\gd_deps\\lib
CC=cl.exe
LD=link.exe
BUILD=Release
#BUILD=Debug
LIBGDCFLAGS= \
/D PATHSEPARATOR="\";\"" \
/D DEFAULT_FONTPATH="\"C:\\WINDOWS\\FONTS;C:\\WINNT\\FONTS\"" \
/D HAVE_FT2BUILD_H \
/D HAVE_LIBZ \
/D HAVE_GD_BUNDLED=1 \
/D HAVE_GD_GIF_READ=1 \
/D HAVE_GD_GIF_CREATE=1 \
/D HAVE_GD_IMAGESETBRUSH=1 \
/D HAVE_GD_IMAGESETTILE=1 \
/D HAVE_GD_JPG \
/D HAVE_GD_PNG \
/D HAVE_GD_STRINGFTEX=1 \
/D HAVE_GD_STRINGTTF=1 \
/D HAVE_GD_XBM \
/D HAVE_LIBFREETYPE=1 \
/D HAVE_LIBJPEG \
/D HAVE_LIBPNG \
/D USE_GD_IMGSTRTTF
CFLAGS=-I. -I.. -I$(EXTRA_INCLUDE) -nologo -DWIN32 -D_WIN32 -DMSWIN32 -DBGDWIN32 $(LIBGDCFLAGS)
LIBS=libjpeg.lib freetype2.lib libpng.lib zlib.lib kernel32.lib user32.lib advapi32.lib
!if "$(BUILD)" == "Debug"
CFLAGS=$(CFLAGS) /Od /Zi /MTd /D_DEBUG /LDd
LDFLAGS=/DEBUG $(LDFLAGS) /nodefaultlib:msvcrt.lib $(EXTRA_LIBS)
LIBS=$(LIBS) msvcrtd.lib
!else
CFLAGS=$(CFLAGS) /Og /Oi /O2 /Oy /GF /MT /DNDEBUG /LD
LDFLAGS=/nodefaultlib:msvcrtd.lib $(EXTRA_LIBS)
LIBS=$(LIBS) msvcrt.lib
!endif
CPPFLAGS=$(CFLAGS)
!if "$(DLLNAME)" == ""
DLLNAME=bgd.dll
!endif
DYNAMICLIB=$(DLLNAME:.dll=.lib)
!if "$(STATICLIB)" == ""
STATICLIB=bgd_a.lib
!endif
OBJS= \
gd.obj \
gdcache.obj \
gdfontg.obj \
gdfontl.obj \
gdfontmb.obj \
gdfonts.obj \
gdfontt.obj \
gdft.obj \
gdfx.obj \
gd_gd2.obj \
gd_gd.obj \
gd_gif_in.obj \
gd_gif_out.obj \
gdhelpers.obj \
gd_io.obj \
gd_io_dp.obj \
gd_io_file.obj \
gd_io_ss.obj \
gd_jpeg.obj \
gd_security.obj \
gdkanji.obj \
gd_png.obj \
gd_ss.obj \
gdtables.obj \
gd_topal.obj \
gd_wbmp.obj \
gdxpm.obj \
wbmp.obj
EXE_OBJS= \
annotate.obj \
circletexttest.obj \
fontconfigtest.obj \
fontsizetest.obj \
fontwheeltest.obj \
gd2copypal.obj \
gd2togif.obj \
gd2topng.obj \
gdcmpgif.obj \
gdparttopng.obj \
gdtopng.obj \
giftogd2.obj \
gdtest.obj \
gdtestft.obj \
gifanimtest.obj \
pngtogd.obj \
pngtogd2.obj \
testac.obj \
testtr.obj \
webpng.obj
all: $(DLLNAME) $(STATICLIB) tests
$(EXE_OBJS:.obj=.exe): $*.obj $(DLLNAME)
link /out:$*.exe $*.obj $(DYNAMICLIB)
tests: $(EXE_OBJS:.obj=.exe)
libgd.dll.res: libgd.rc
$(RC) /fo libgd.dll.res libgd.rc
{..}.c.obj:
$(CC) $(CFLAGS) -c $<
$(STATICLIB): $(OBJS)
$(LD) /lib /out:$(STATICLIB) $(OBJS)
$(DLLNAME): $(OBJS) libgd.dll.res
$(LD) /dll /out:$(DLLNAME) \
$(LDFLAGS) \
$(OBJS) \
libgd.dll.res \
$(LIBS)
dist: all
-rmdir /s /q distro
mkdir distro
mkdir distro\bin
copy *.exe distro\bin
copy *.dll distro\bin
mkdir distro\include
copy ..\*.h distro\include
mkdir distro\lib
copy *.lib distro\lib
copy ..\COPYING distro\COPYING.TXT
clean:
-del /q *.obj *.dll *.lib *.ilk *.pdb *.exp *.exe *.png *.res
-rmdir /s /q distro
|