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 (131 lines) | stat: -rw-r--r-- 3,669 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
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
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@

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

VPATH = $(top_srcdir)/main

OBJ_xlib = main.o
OBJ_win32 = main.o
OBJ_fb = main.o
OBJ_quartz = main-cocoa.o
OBJ_console = main.o
OBJ_wayland = main.o
OBJ_sdl2 = main.o
OBJ = daemon.o main_loop.o $(OBJ_@GUI@)

LPOBL = @LPOBL@
LMEF = @LMEF@
LMLTERM = ../vtemu/libmlterm.a ../vtemu/@LMLTERM_CORE@
LUITK = ../uitoolkit/libuitoolkit.a
LPOBL_DEB = -lpobl_deb
LMEF_DEB = -lmef_deb

# XDATADIR is to avoid conflicting with DATADIR structure in w32api/objidl.h.
CFLAGS = $(CFLAGS_LOCAL) @POBL_CFLAGS@ @MEF_CFLAGS@ @DEB_CFLAGS@ @BRLAPI_CFLAGS@ \
	@X_CFLAGS@ @GUI_CFLAGS@ @SSH2_CFLAGS@ @TYPE_CFLAGS@ @FT_CFLAGS@ @SDL2_CFLAGS@ \
	@CFLAGS@ @CPPFLAGS@ -DSYSCONFDIR=\"$(sysconfdir)\" -I$(top_srcdir)/vtemu \
	-I${top_srcdir}/uitoolkit -I${top_builddir}/main -I/usr/local/include

CFLAGS_FOR_FEATURES = @OT_LAYOUT_CFLAGS@ @CTL_CFLAGS@ @IM_CFLAGS@ @IMAGELIB_CFLAGS@ @UTMP_CFLAGS@

LIBS1 = $(LIBS_LOCAL) $(LUITK) $(LMLTERM) $(LMEF) $(LPOBL) \
	-L/usr/local/lib @SSH2_LIBS_FOR_PROG@ @BRLAPI_LIBS@ \
	@OT_LAYOUT_LIBS_FOR_PROG@ @PTHREAD_LIB@

LIBS2_xlib = @IMAGELIB_LIBS@ @DL_LIBS_IM@ @DL_LIBS_SB@ @MATH_LIBS@ @TYPE_LIBS_FOR_PROG@ \
	@X_LIBS@ -lX11 @X_EXTRA_LIBS@
#	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@

LIBS2_fb = @MATH_LIBS@ @DL_LIBS_IM@ @DL_LIBS_SB@ @FT_LIBS@ @SOCK_LIBS@

LIBS2_win32 = -mwindows -limm32 ../uitoolkit/winrs.o # @SUBSYSTEM@

LIBS2_quartz = -framework Foundation -framework Cocoa

LIBS2_console = @SIXEL_LIBS@ @MATH_LIBS@ @DL_LIBS_IM@ @DL_LIBS_SB@ @SOCK_LIBS@

LIBS2_wayland = @FT_LIBS@ @MATH_LIBS@ @DL_LIBS_IM@ @DL_LIBS_SB@ @SOCK_LIBS@ \
	-lwayland-client -lwayland-cursor -lxkbcommon

LIBS2_sdl2_win32 = ../uitoolkit/winrs.o

LIBS2_sdl2 = @SDL2_LIBS@ @DL_LIBS_IM@ @DL_LIBS_SB@ @FT_LIBS@ @SOCK_LIBS@ $(LIBS2_@GUI@_@SDL2GUI@)

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

PROG_xlib = mlterm
PROG_win32 = mlterm
PROG_fb = mlterm-fb
PROG_console = mlterm-con-server
PROG_quartz = mlterm
PROG_wayland = mlterm-wl
PROG_sdl2 = mlterm-sdl2
PROG2_console = mlterm-con

INSTALL_OPT = @INSTALL_OPT@

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

all: $(PROG_@GUI@) $(PROG2_@GUI@)

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

$(PROG_@GUI@): $(OBJ) $(LMLTERM) $(LUITK)
	$(LIBTOOL_LINK) -o $(PROG_@GUI@) $(OBJ@MAIN_OBJ_SUFFIX@) \
		$(LIBS) @CTL_LIBS_FOR_PROG@

mlterm-con: $(top_srcdir)/main/main-con.c
	$(CC) -o mlterm-con $(top_srcdir)/main/main-con.c $(CFLAGS_LOCAL) @CFLAGS@ @CPPFLAGS@ \
		@SOCK_LIBS@ @LDFLAGS@ -DBINDIR=\"$(bindir)\" -DLIBEXECDIR=\"$(libexecdir)\"

.SUFFIXES: .c .o
.SUFFIXES: .m .o

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

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

$(BINDIR):
	mkdir -p $(BINDIR)

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

install: $(BINDIR) $(LIBEXECDIR@WIN32TAG@)
	if test "@GUI@" = "console" ; then \
		$(LIBTOOL_INSTALL) $(PROG2_@GUI@) $(BINDIR) ; \
		$(LIBTOOL_INSTALL) $(INSTALL_OPT) $(PROG_@GUI@) $(LIBEXECDIR@WIN32TAG@) ; \
	else \
		$(LIBTOOL_INSTALL) $(INSTALL_OPT) $(PROG_@GUI@) $(BINDIR) ; \
	fi

uninstall :
	rm -f $(BINDIR)/$(PROG_@GUI@)

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

clean:
	rm -rf $(PROG_@GUI@)* $(PROG2_@GUI@) *core $(OBJ) $(OBJ:.o=.lo) .libs

distclean: clean
	rm -f Makefile version.h