File: Makefile.in

package info (click to toggle)
mlterm 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 24,124 kB
  • sloc: ansic: 137,946; sh: 4,421; cpp: 2,929; objc: 2,683; makefile: 2,404; java: 2,171; perl: 1,201; xml: 45
file content (86 lines) | stat: -rw-r--r-- 2,152 bytes parent folder | download | duplicates (2)
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
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@

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

VPATH = $(top_srcdir)/tool/mlimgloader

OBJ = @MLIMGLOADER_LIB@.o

LPOBL = @LPOBL@
LPOBL_DEB = -lpobl_deb

CFLAGS1 = $(CFLAGS_LOCAL) @POBL_CFLAGS@ @DEB_CFLAGS@ @GUI_CFLAGS@ @CFLAGS@ @CPPFLAGS@ \
	@X_CFLAGS_AUX@ -I/usr/local/include

CFLAGS2_gdk-pixbuf = @GDK_PIXBUF_CFLAGS@ @X_CFLAGS@ @EMOJI_CFLAGS@

CFLAGS = $(CFLAGS1) $(CFLAGS2_@MLIMGLOADER_LIB@) -DLIBEXECDIR=\"$(libexecdir)\" \
	-DBINDIR=\"$(bindir)\"

LIBS1 = $(LIBS_LOCAL) $(LPOBL) -L/usr/local/lib

LIBS2_xlib_gdk-pixbuf = @X_LIBS@ @X_EXTRA_LIBS@ @GDK_PIXBUF_LIBS@ @EMOJI_LIBS@
LIBS2_xlib_gdiplus = $(LIBS2_win32_gdiplus)
LIBS2_fb_gdk-pixbuf = $(LIBS2_xlib_gdk-pixbuf)
LIBS2_console_gdk-pixbuf = $(LIBS2_xlib_gdk-pixbuf)
LIBS2_wayland_gdk-pixbuf = $(LIBS2_xlib_gdk-pixbuf)
LIBS2_sdl2_gdiplus = $(LIBS2_win32_gdiplus)
LIBS2_sdl2_gdk-pixbuf = $(LIBS2_xlib_gdk-pixbuf)
LIBS2_beos_gdk-pixbuf = $(LIBS2_xlib_gdk-pixbuf)

# Segfault in cygwin without them.
LIBS2_win32_gdk-pixbuf = -mwindows @GDK_PIXBUF_LIBS@
LIBS2_win32_gdiplus = -mwindows -lgdiplus -lstdc++ -lole32
LIBS2_win32_none = -mwindows

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

PROG = mlimgloader

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

all: $(PROG)

$(PROG): $(OBJ)
	$(LIBTOOL_LINK) $(CFLAGS) -o $(PROG) $(OBJ:.o=.lo) $(LIBS)

.SUFFIXES: .c .o

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

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

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

install: $(LIBEXECDIR@WIN32TAG@)
	$(LIBTOOL_INSTALL) $(PROG) $(LIBEXECDIR@WIN32TAG@)

uninstall:
	rm -f $(LIBEXECDIR@WIN32TAG@)/$(PROG)

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

clean:
	rm -rf $(PROG) $(PROG).exe *core $(OBJ) $(OBJ:.o=.lo) .libs

distclean: clean
	rm -f Makefile