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 (96 lines) | stat: -rw-r--r-- 2,666 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
96
top_builddir = ../..
top_srcdir = @top_srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datadir = @datadir@
bindir = @bindir@
libdir = @libdir@
libexecdir = @libexecdir@
sysconfdir = @sysconfdir@
datadir = @datadir@

VPATH = ${top_srcdir}/tool/mlconfig

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

LIBEXECDIR = $(DESTDIR)$(libexecdir)/mlterm
LIBEXECDIR_win32 = $(DESTDIR)$(bindir)

LPOBL = @LPOBL@

# XDATADIR is to avoid conflicting with DATADIR structure in w32api/objidl.h.
CFLAGS = $(CFLAGS_LOCAL) @GTK_CFLAGS@ @IMAGELIB_CFLAGS@ @DEB_CFLAGS@ \
	@POBL_CFLAGS@ @GUI_CFLAGS@ @SSH2_CFLAGS@ @CFLAGS@ @CPPFLAGS@ \
	-I${top_srcdir}/xwindow -I${top_srcdir}/vtemu \
	-I${top_builddir}/common -I${top_srcdir}/common \
	-I${top_srcdir}/inputmethod \
	-I/usr/local/include \
	-DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(datadir)/locale\" \
	-DXDATADIR=\"$(datadir)\" -DLIBDIR=\"$(libdir)\"

LIBS1 = $(LIBS_LOCAL) @INTL_LIBS@ @DL_SELF@ @DL_LIBS_IM@ @GTK_LIBS@

# -lX11 is for http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
LIBS2_xlib = $(LPOBL) -lX11 -L/usr/local/lib

LIBS2_wayland = $(LPOBL)

LIBS2_sdl2 = $(LPOBL)

# mlconfig is statically linked with libpobl.
# Then it works if installed libpobl.dll is compiled with USE_WIN32API or not.
LIBS2_win32 = -mwindows ${top_builddir}/baselib/src/.libs/libpobl.a

LIBS2_quartz = $(LPOBL)

LIBS = $(LIBS1) $(LIBS2_@GUI@)

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

PACKAGE = @PACKAGE@
VERSION = @VERSION@

OBJ = main.o mc_combo.o mc_char_encoding.o mc_im.o mc_tabsize.o mc_logsize.o \
	mc_font.o mc_color.o mc_radio.o mc_space.o mc_alpha.o mc_ctl.o \
	mc_sb_view.o mc_wall_pic.o mc_bgtype.o mc_io.o mc_pty.o mc_char_width.o \
	mc_flags.o mc_auto_detect.o mc_ratio.o mc_wordsep.o mc_unicode_areas.o \
	mc_geometry.o mc_click.o mc_opentype.o @XLFDSEL_OBJ@

LPOBL_DEB=-lpobl_deb

all: mlconfig

debug:
	$(MAKE) LPOBL="$(LPOBL_DEB)" all

mlconfig: $(OBJ)
	$(LIBTOOL_LINK) $(OBJ) $(CFLAGS) -o mlconfig $(LIBS)
	# "cd po" must be enclosed by () because it may not return
	# to the $(top_builddir)/tool/mlconfig at the next line.
	(cd po ; $(MAKE) update-gmo)
	# cd po ; $(MAKE) update-po

.c.o:
	$(CC) $(DEFS) $(CFLAGS) -c $<

install: $(LIBEXECDIR@WIN32TAG@)
	$(LIBTOOL_INSTALL) -m 755 mlconfig $(LIBEXECDIR@WIN32TAG@)
	cd po ; $(MAKE) install

uninstall:
	rm -f $(LIBEXECDIR@WIN32TAG@)/mlconfig
	cd po ; $(MAKE) uninstall

$(LIBEXECDIR@WIN32TAG@):
	mkdir -p $(LIBEXECDIR@WIN32TAG@)

clean:
	rm -rf $(OBJ) mlconfig mlconfig.exe *.core .libs
	cd po ; $(MAKE) clean

distclean: clean
	rm -f Makefile
	cd po ; $(MAKE) maintainer-clean