File: Makefile.in

package info (click to toggle)
mlterm 3.8.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 22,296 kB
  • sloc: ansic: 128,888; sh: 9,881; makefile: 2,308; java: 2,158; objc: 1,448; perl: 1,201; cpp: 869; xml: 45; sed: 16
file content (95 lines) | stat: -rw-r--r-- 2,446 bytes parent folder | download
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
top_builddir = ../..
top_srcdir = @top_srcdir@
prefix = @prefix@
sysconfdir = @sysconfdir@
exec_prefix = @exec_prefix@
datadir = @datadir@
bindir = @bindir@
libdir = @libdir@
libexecdir = @libexecdir@

CC = @CC@
LIBTOOL = @LIBTOOL@
INSTALL = @INSTALL@

LIBDIR = $(DESTDIR)$(libdir)/mlterm

VPATH = $(top_srcdir)/uitoolkit/libtype

XFT_OBJ = ui_window_xft.o ui_font_xft.o ui_functbl_xft.o
CAIRO_OBJ = ui_window_cairo.o ui_font_cairo.o ui_functbl_cairo.o
NODL_OBJ = @NODL_OBJ@ ui_font_ft.o

LPOBL = @LPOBL@
LPOBL_DEB = -lpobl_deb

# XDATADIR is to avoid conflicting with DATADIR structure in w32api/objidl.h.
CFLAGS = $(CFLAGS_LOCAL) @POBL_CFLAGS@ @MEF_CFLAGS@ @DEB_CFLAGS@ @X_CFLAGS@ @XFT_CFLAGS@ \
	@CAIRO_CFLAGS@ @TYPE_CFLAGS@ @OT_LAYOUT_CFLAGS@ @CFLAGS@ @CPPFLAGS@ \
	-DLIBDIR=\"$(libdir)\" \
	-I/usr/local/include -I${top_srcdir}/vtemu -I${top_srcdir}/uitoolkit/libotl

XFT_LIBS = @XFT_LIBS@
CAIRO_LIBS = @CAIRO_LIBS@
LIBS = $(LIBS_LOCAL) $(LPOBL) -L/usr/local/lib

INSTALL_OPT = -m 755

LIBTOOL_CC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS)
LIBTOOL_LINK = $(LIBTOOL) --mode=link $(CC) @LDFLAGS@
LIBTOOL_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)

TYPE_LIBS = @TYPE_LIBS@

all: $(TYPE_LIBS)

libtype_xft.la: $(XFT_OBJ)
	$(LIBTOOL_LINK) -o libtype_xft.la $(XFT_OBJ:.o=.lo) \
	-rpath $(libdir)/mlterm \
	-module -avoid-version @NO_UNDEFINED_FLAG@ @DEXPORT@ \
	$(LIBS) $(XFT_LIBS)

libtype_cairo.la: $(CAIRO_OBJ)
	$(LIBTOOL_LINK) -o libtype_cairo.la $(CAIRO_OBJ:.o=.lo) \
	-rpath $(libdir)/mlterm \
	-module -avoid-version @NO_UNDEFINED_FLAG@ @DEXPORT@ \
	$(LIBS) $(CAIRO_LIBS)

libtype.a: $(NODL_OBJ)
	$(LIBTOOL_LINK) -o libtype.a $(NODL_OBJ:.o=.lo)

ui_font_ft.o: ui_font_ft.c
	$(LIBTOOL_CC) @TYPE_CFLAGS@ -c $<

.SUFFIXES: .c .o

.c.o:
	$(LIBTOOL_CC) -c $<

install : $(LIBDIR)
	if test "$(TYPE_LIBS)" != "" ; then \
		$(LIBTOOL_INSTALL) $(INSTALL_OPT) $(TYPE_LIBS) $(LIBDIR) ; \
	fi

uninstall :
	rm -f $(LIBDIR)/*type_*

$(LIBDIR) :
	mkdir -p $(LIBDIR)

wc :
	find . -name "*.[ch]" -a \! -name "test_*" | xargs wc -l

clean:
	rm -rf $(TYPE_LIBS) $(XFT_OBJ) $(XFT_OBJ:.o=.lo) \
		$(CAIRO_OBJ) $(CAIRO_OBJ:.o=.lo) ui_font_ft.o ui_font_ft.lo .libs

distclean: clean
	rm -f Makefile

libfc_wrapper.la: fc_wrapper.o
	$(LIBTOOL_LINK) -o libfc_wrapper.la fc_wrapper.lo -rpath $(libdir)/mlterm \
	-module -avoid-version `pkg-config freetype2 --libs`

install_fc_wrapper : $(LIBDIR)
	$(LIBTOOL_INSTALL) $(INSTALL_OPT) libfc_wrapper.la $(LIBDIR)