summaryrefslogtreecommitdiff
path: root/pango/makefile.mingw
blob: e32f72f0b47aa3b3294fc6714003b8ef7d8e9e81 (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
PANGO_VER = 0.12

TOP = ../..

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

OPTIMIZE = -g

INCLUDES = -I .. -I .
DEFINES = 
DEPCFLAGS = $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(FRIBIDI_CFLAGS)

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

PANGO_OBJS = \
	break.o \
	fonts.o \
	glyphstring.o \
	mapping.o \
	modules.o \
	module-defs.o \
	pango-attributes.o \
	pango-context.o \
	pango-coverage.o \
	pango-fontmap.o \
	pango-item.o \
	pango-layout.o \
	pango-utils.o \
	reorder-items.o \
	shape.o

PANGOWIN32_OBJS = \
	pangowin32.o \
	pangowin32-fontcache.o \
	pangowin32-fontmap.o

PANGO_QUERYMODULES_OBJS = \
	querymodules.o

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

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

pango-$(PANGO_VER).dll : $(PANGO_OBJS) pango.def
	$(GLIB)/build-dll pango $(PANGO_VER) pango.def $(PANGO_OBJS) $(GLIB_LIBS) $(LIBICONV_LIBS) $(FRIBIDI_LIBS)

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

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

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) $(FRIBIDI_LIBS) -lgdi32

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

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