aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xprint/ps/Imakefile
blob: c73466fe48a6726f7d6560992ed8438d01850400 (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
XCOMM $Xorg: Imakefile,v 1.5 2001/03/14 18:26:56 pookie Exp $

#include <Server.tmpl>

#if BuildFreeType || BuildFreetype2Library
FT2SOURCEDIR    = $(TOP)/extras/freetype2/src
FT2INCDIR       = $(TOP)/extras/freetype2/include
FT2INCS         = -I$(FT2INCDIR) \
                  -I$(FT2SOURCEDIR)/type42
TTF2PT1OURCEDIR = $(TOP)/extras/ttf2pt1
FT_DEFINES      = -DXP_USE_FREETYPE
FTSRCS          = psout_ft.c psout_ftpstype1.c psout_ftpstype3.c PsFTFonts.c
FTOBJS          = psout_ft.o psout_ftpstype1.o psout_ftpstype3.o PsFTFonts.o

#if !defined (LynxOSArchitecture)
TTF2PT1SRCFILE = ttf2pt1.c
TTF2PT1OBJFILE = ttf2pt1.o
#else
TTF2PT1SRCFILE = ttf2pt1wrap.c
TTF2PT1OBJFILE = ttf2pt1wrap.o
#endif

#if defined(SCOArchitecture)
XTRA_SYS_DEFINES = SCOBuildFlags
#endif

TTF2PT1SRCS = ft.c pt1.c runt1asm.c $(TTF2PT1SRCFILE)
TTF2PT1OBJS = ft.o pt1.o runt1asm.o $(TTF2PT1OBJFILE)
TTF2PT1_DEFINES = -DUSE_FREETYPE -DXP_ONLY_BLOCKS
#endif /* BuildFreeType || BuildFreetype2Library */

SRCS1 =	PsInit.c PsPrint.c PsGC.c PsMisc.c PsSpans.c PsArea.c PsPixel.c \
        PsLine.c PsPolygon.c PsArc.c PsText.c PsWindow.c PsFonts.c \
        PsAttr.c PsAttVal.c PsColor.c PsPixmap.c psout.c PsCache.c PsImageUtil.c

OBJS1 = PsInit.o PsPrint.o PsGC.o PsMisc.o PsSpans.o PsArea.o PsPixel.o \
        PsLine.o PsPolygon.o PsArc.o PsText.o PsWindow.o PsFonts.o \
        PsAttr.o PsAttVal.o PsColor.o PsPixmap.o psout.o PsCache.o PsImageUtil.o

SRCS = $(SRCS1) $(TTF2PT1SRCS) $(FTSRCS)

OBJS = $(OBJS1) $(TTF2PT1OBJS) $(FTOBJS)

#if BuildFreeType || BuildFreetype2Library
LinkSourceFile(ttf2pt1.c,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(pt1.c,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(pt1.h,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(ft.c,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(runt1asm.c,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(t1asm.c,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(ttf.h,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(global.h,$(TTF2PT1OURCEDIR)/)
LinkSourceFile(version.h,$(TTF2PT1OURCEDIR)/)
#endif /* BuildFreeType || BuildFreetype2Library */

#ifdef XVendorString
VENDORSTRING = XVendorString
   VENDOR_STRING = -DVENDOR_STRING=\"$(VENDORSTRING)\"
#endif

#ifdef XVendorRelease
VENDORRELEASE = XVendorRelease
   VENDOR_RELEASE = -DVENDOR_RELEASE="$(VENDORRELEASE)"
#endif

VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE)

XCOMM DEFINES = -DPIXPRIV

XCOMM BM_CACHE disabled because it causes PostScript errors
XCOMM (see http://xprint.mozdev.org/bugs/show_bug.cgi?id=1489)
XCOMM   DEFINES = -DPSOUT_USE_DEEPCOLOR -DXP_PSTEXT -DBM_CACHE $(VENDOR_DEFINES) $(TTF2PT1_DEFINES) $(FT_DEFINES)
   DEFINES = -UXFree86LOADER -DPSOUT_USE_DEEPCOLOR -DXP_PSTEXT -D_XP_PRINT_SERVER_ $(VENDOR_DEFINES) $(TTF2PT1_DEFINES) $(FT_DEFINES) $(EXT_DEFINES) $(XTRA_SYS_DEFINES)

   INCLUDES = -I. -I../../mi -I../../mfb -I$(LIBSRC) \
             -I$(XINCLUDESRC) -I../../include -I.. -I$(TOP)/include \
             -I$(EXTINCSRC) -I$(FONTINCSRC) -I$(FONTLIBSRC)/include \
             $(FT2INCS) -I../../../../lib/font/FreeType

   LINTLIBS = $(TOP)/server/dix/llib-ldix.ln $(TOP)/server/os/llib-los.ln \
	      $(TOP)/server/ddx/mfb/llib-lmfb.ln \
	      $(TOP)/server/ddx/mi/llib-lmi.ln

NormalLibraryObjectRule()

NormalLibraryTarget(ps,$(OBJS))
NormalLintTarget($(SRCS1) $(SRCS2))

DependTarget()