summaryrefslogtreecommitdiff
path: root/modules/makefile.msc
blob: c4fd7e6fa26021d83b5d8124a20b49ebbec8b4b3 (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
# modles for the ft2 backend, don't include 'basic'
# here it is built-in pangoft.dll, see ../pango/makefile.msc
MODULES = arabic hangul hebrew indic syriac thai khmer

!IFNDEF MODULE

# The main target
all : sub-all

sub-all: 
	for %d in ($(MODULES)) do nmake -nologo -f makefile.msc sub-one THIS=%d

sub-one:
	cd $(THIS)
	nmake -nologo -f ..\makefile.msc libpango-$(THIS)-fc.dll MODULE=$(THIS) OBJ_$(THIS)=1
	cd ..

clean:
	for %d in ($(MODULE)) do nmake -nologo -f makefile.msc sub-clean THIS=%d

!ELSE

TOP = ..\..\..
!INCLUDE $(TOP)\glib\build\win32\make.msc

!IFDEF OBJ_arabic
OBJECTS = arabic-fc.obj arabic-ot.obj
!ENDIF

!IFDEF OBJ_hebrew
OBJECTS = hebrew-fc.obj hebrew-shaper.obj
!ENDIF

!IFDEF OBJ_indic
OBJECTS = indic-fc.obj indic-ot.obj indic-ot-class-tables.obj mprefixups.obj 
!ENDIF

!IFDEF OBJ_khmer
OBJECTS = khmer_fc.obj
!ENDIF

!IFDEF OBJ_syriac
OBJECTS = syriac-fc.obj syriac-ot.obj
!ENDIF

!IFDEF OBJ_thai
OBJECTS = thai-fc.obj thai-shaper.obj
!ENDIF

!IFNDEF OBJECTS
OBJECTS = $(MODULE)-fc.obj
!ENDIF

INCLUDES = -I ..\.. -I ..\..\pango $(GLIB_CFLAGS) $(FREETYPE2_CFLAGS)
DEFINES = -DPANGO_ENABLE_ENGINE
LINKS = $(FREETYPE_LIBS) $(GLIB_LIBS) \
	..\..\pango\pango-1.0.lib ..\..\pango\pangoft2-1.0.lib

libpango-$(MODULE)-fc.dll : $(OBJECTS) ..\module.def
	$(CC) $(CFLAGS) -LD -Fe$@ $(OBJECTS) $(LINKS) $(LDFLAGS) /def:..\module.def

# MODULE
!ENDIF