blob: ccd5c258b2cc000d5220bf9600083b31257452b9 (
plain) (
blame)
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
146
147
148
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
OS = linux
# Linux: linux
# Mac OS: macos
# Windows: windows
include mk/$(OS).mk
LIB_MAJOR = 2
LIB_MINOR = 0
LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR)
LIB_NAME = parsepcf
# Version 2.0 is ABI-backwards compatible with
# version 1.0, but not API-backwards compatible
OBJ =\
libparsepcf_destroy_preparsed_font.o\
libparsepcf_get_accelerators.o\
libparsepcf_get_bitmap_offsets.o\
libparsepcf_get_bitmaps.o\
libparsepcf_get_encoding.o\
libparsepcf_get_glyph_indices.o\
libparsepcf_get_glyph_name_subtable.o\
libparsepcf_get_glyph_names.o\
libparsepcf_get_metrics.o\
libparsepcf_get_metrics_count.o\
libparsepcf_get_properties.o\
libparsepcf_get_property_subtable.o\
libparsepcf_get_swidth_count.o\
libparsepcf_get_swidths.o\
libparsepcf_get_table_count.o\
libparsepcf_get_tables.o\
libparsepcf_parse_int16_from_unsigned__.o\
libparsepcf_parse_int32_from_unsigned__.o\
libparsepcf_parse_lsb_uint16__.o\
libparsepcf_parse_lsb_uint32__.o\
libparsepcf_parse_msb_uint16__.o\
libparsepcf_parse_msb_uint32__.o\
libparsepcf_preparse_font.o
HDR =\
libparsepcf.h\
common.h
MAN3 =\
struct_libparsepcf_table.3\
LIBPARSEPCF_PROPERTIES.3\
LIBPARSEPCF_ACCELERATORS.3\
LIBPARSEPCF_METRICS.3\
LIBPARSEPCF_BITMAPS.3\
LIBPARSEPCF_INK_METRICS.3\
LIBPARSEPCF_BDF_ENCODINGS.3\
LIBPARSEPCF_SWIDTHS.3\
LIBPARSEPCF_GLYPH_NAMES.3\
LIBPARSEPCF_BDF_ACCELERATORS.3\
libparsepcf_get_table_count.3\
libparsepcf_get_tables.3\
struct_libparsepcf_properties.3\
struct_libparsepcf_property_subtable.3\
libparsepcf_get_properties.3\
libparsepcf_get_property_subtable.3\
struct_libparsepcf_metrics.3\
libparsepcf_get_metrics_count.3\
libparsepcf_get_metrics.3\
struct_libparsepcf_glyph_names.3\
libparsepcf_get_glyph_names.3\
libparsepcf_get_glyph_name_subtable.3\
struct_libparsepcf_bitmaps.3\
int libparsepcf_get_bitmaps.3\
int libparsepcf_get_bitmap_offsets.3\
struct_libparsepcf_encoding.3\
LIBPARSEPCF_NOT_ENCODED.3\
libparsepcf_get_encoding.3\
libparsepcf_get_glyph_indices.3\
struct_libparsepcf_accelerators.3\
libparsepcf_get_accelerators.3\
libparsepcf_get_swidth_count.3\
libparsepcf_get_swidths.3\
struct_libparsepcf_font.3\
libparsepcf_preparse_font.3\
libparsepcf_destroy_preparsed_font.3
MAN0 = libparsepcf.h.0
MAN7 = libparsepcf.7
LOBJ = $(OBJ:.o=.lo)
SRC = $(OBJ:.o=.c)
all: libparsepcf.a libparsepcf.$(LIBEXT) demo
$(OBJ): $(HDR)
$(LOBJ): $(HDR)
demo.o: $(HDR)
demo: demo.o libparsepcf.a
$(CC) -o $@ demo.o libparsepcf.a $(LDFLAGS)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
.c.lo:
$(CC) -fPIC -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
libparsepcf.a: $(OBJ)
@rm -f -- $@
$(AR) rc $@ $(OBJ)
libparsepcf.$(LIBEXT): $(LOBJ)
$(CC) $(LIBFLAGS) -o $@ $(LOBJ) $(LDFLAGS)
install: libparsepcf.a libparsepcf.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man0"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7"
cp -- libparsepcf.a "$(DESTDIR)$(PREFIX)/lib/"
cp -- libparsepcf.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMINOREXT)"
$(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMINOREXT)"
ln -sf -- libparsepcf.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMAJOREXT)"
ln -sf -- libparsepcf.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBEXT)"
cp -- libparsepcf.h "$(DESTDIR)$(PREFIX)/include/"
cp -P -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.a"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMAJOREXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMINOREXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBEXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/libparsepcf.h"
-cd -- "$(DESTDIR)$(MANPREFIX)/man0/" && rm -f -- $(MAN0)
-cd -- "$(DESTDIR)$(MANPREFIX)/man3/" && rm -f -- $(MAN3)
-cd -- "$(DESTDIR)$(MANPREFIX)/man7/" && rm -f -- $(MAN7)
clean:
-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.dll *.dylib
-rm -f -- *.gch *.gcov *.gcno *.gcda *.$(LIBEXT) demo
.SUFFIXES:
.SUFFIXES: .lo .o .c
.PHONY: all install uninstall clean
|