0
|
1 @SET_MAKE@
|
|
2 CC = @CC@
|
|
3 CXX = @CXX@
|
|
4 LD = @CC@
|
|
5 AR = ar
|
|
6 RANLIB = @RANLIB@
|
|
7
|
|
8 CFLAGS= -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ @FT2_CFLAGS@ -pthread -O2
|
|
9 CXXFLAGS = $(CFLAGS)
|
|
10 LDFLAGS = @LDFLAGS@ @FT2_LIBS@ @LIBS@ -pthread
|
|
11
|
|
12 SRCS = font_face.cc \
|
|
13 font_peer_fn.cc \
|
|
14 font_peer_ft2.cc \
|
|
15 font_peer_x11.cc \
|
|
16 font_layout.cc \
|
|
17 codeconv.cc \
|
|
18 text_stream.cc \
|
|
19 # render.c
|
|
20
|
|
21 OBJS = ${SRCS:.cc=.o}
|
|
22
|
|
23 all: libfont.a
|
|
24
|
|
25 libfont.a: ${OBJS}
|
|
26 rm -f libfont.a
|
|
27 ${AR} clq libfont.a ${OBJS}
|
|
28 $(RANLIB) libfont.a
|
|
29
|
|
30 clean:
|
|
31 rm -f libfont.a ${OBJS} *.bak *.core
|
|
32
|
|
33 .c.o:
|
|
34 $(CC) -c $(CFLAGS) -o $@ $<
|
|
35
|
|
36 .cc.o:
|
|
37 $(CXX) -c $(CFLAGS) -o $@ $<
|
|
38
|