summaryrefslogtreecommitdiff
path: root/pango/makefile.mingw.in
blob: a4b03e9d39e8e77b02ad651786557d5e85c029fd (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
TOP = ../..

include $(TOP)/build/win32/make.mingw

# Possibly override Pango version from build/win32/module.defs
PANGO_VER = @VERSION@

OPTIMIZE = -g -Wall

INCLUDES = -I .. -I .
DEFINES = -DPANGO_VERSION=\"$(PANGO_VER)\"
DEPCFLAGS = $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(FREETYPE2_CFLAGS)

pango_built_headers= pango-enum-types.h
pango_built_cfiles= pango-enum-types.c

BUILT_SOURCES=$(pango_built_headers) $(pango_built_cfiles)

all :						\
	../config.h				\
	$(BUILT_SOURCES)			\
	pango-$(PANGO_VER).dll			\
	pangowin32-$(PANGO_VER).dll		\
	pangoft2-$(PANGO_VER).dll		\
	pango-querymodules.exe

PANGO_OBJS =					\
	break.o					\
	fonts.o					\
	glyphstring.o				\
	mapping.o				\
	modules.o				\
	pango-attributes.o			\
	pango-context.o				\
	pango-coverage.o			\
	pango-enum-types.o			\
	pango-fontmap.o				\
	pango-intset.o				\
	pango-item.o				\
	pango-layout.o				\
	pango-markup.o				\
	pango-tabs.o				\
	pango-utils.o				\
	reorder-items.o				\
	shape.o

PANGOWIN32_OBJS =				\
	module-defs-win32.o			\
	pangowin32.o				\
	pangowin32-fontcache.o			\
	pangowin32-fontmap.o

PANGOFT2_OBJS =					\
	module-defs-ft2.o			\
	pangoft2.o				\
	pangoft2-fontcache.o			\
	pangoft2-fontmap.o

PANGO_QUERYMODULES_OBJS =			\
	querymodules.o

pango_headers=		   \
	pango.h		   \
	pango-attributes.h \
	pango-break.h	   \
	pango-context.h	   \
	pango-coverage.h   \
	pango-engine.h	   \
	pango-font.h       \
	pango-fontmap.h	   \
	pango-glyph.h	   \
	pango-indic.h	   \
	pango-item.h	   \
	pango-layout.h	   \
	pango-modules.h	   \
	pango-tabs.h	   \
	pango-types.h	   \
	pango-utils.h

../config.h : ../config.h.win32
	cp $< $@

module-defs-win32.c : module-defs-win32.c.win32
	cp $< $@

module-defs-ft2.c : module-defs-ft2.c.win32
	cp $< $@

pango-$(PANGO_VER).dll : $(PANGO_OBJS) pango.def
	$(GLIB)/build-dll pango $(PANGO_VER) pango.def $(OPTIMIZE) $(PANGO_OBJS) -L mini-fribidi -lmini-fribidi $(GLIB_LIBS) $(LIBICONV_LIBS)

pangowin32-$(PANGO_VER).dll : $(PANGOWIN32_OBJS) pangowin32.def
	$(GLIB)/build-dll pangowin32 $(PANGO_VER) pangowin32.def $(OPTIMIZE) $(PANGOWIN32_OBJS) -L . -lpango-$(PANGO_VER) $(GLIB_LIBS) -lgdi32

pangoft2-$(PANGO_VER).dll : $(PANGOFT2_OBJS) pangoft2.def
	$(GLIB)/build-dll pangoft2 $(PANGO_VER) pangoft2.def $(OPTIMIZE) $(PANGOFT2_OBJS) -L . -lpango-$(PANGO_VER) $(GLIB_LIBS) $(FREETYPE2_LIBS) -lgdi32

pango-querymodules.exe : $(PANGO_QUERYMODULES_OBJS) pango-$(PANGO_VER).dll
	$(CC) -o $@ $(PANGO_QUERYMODULES_OBJS) -L . -lpango-$(PANGO_VER) $(GLIB_LIBS)

pango-enum-types.h: $(pango_headers) makeenums.pl
	perl makeenums.pl include $(pango_headers) > pango-enum-types.h

pango-enum-types.c: $(pango_headers) makeenums.pl
	perl makeenums.pl cfile $(pango_headers) > pango-enum-types.c

test1.exe : test1.o pango-$(PANGO_VER).dll pangowin32-$(PANGO_VER).dll
	$(CC) -o $@ $(CFLAGS) test1.o -L . -lpango-$(PANGO_VER) -lpangowin32-$(PANGO_VER) $(GLIB_LIBS) -lgdi32

test2.exe : test2.o
	$(CC) -o $@ $(CFLAGS) test2.o -lgdi32

test3.exe : test3.o
	$(CC) -o $@ $(CFLAGS) test3.o -lgdi32

test4.exe : test4.o pango-$(PANGO_VER).dll pangowin32-$(PANGO_VER).dll
	$(CC) -o $@ $(CFLAGS) test4.o -L . -lpango-$(PANGO_VER) -lpangowin32-$(PANGO_VER) $(GLIB_LIBS)

test5.exe : test5.o
	$(CC) -o $@ $(CFLAGS) test5.o -lgdi32

ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
# Hack to get an updated makefile.mingw automatically after updating
# makefile.mingw.in. Only for developer use.
makefile.mingw: makefile.mingw.in
	sed -e 's,@VER[S]ION@,@VERSION@,' <$< >$@
endif