-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile.am
54 lines (37 loc) · 969 Bytes
/
Makefile.am
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
#
# Copyright (c) 2008 Mikhail Gusarov <[email protected]>
#
# BSD-3
#
bin_PROGRAMS = x2x
x2x_SOURCES = x2x.c
nodist_x2x_SOURCES = lawyerese.c
dist_man1_MANS = x2x.1
# -- win32 support --
if WIN32
AM_CFLAGS = -DWIN_2_X
LIBS += -luser32 -lgdi32 # Ugly hack
x2x_SOURCES += keymap.c winmsg.c x2xwin.rc
.o:.rc
windres $^ -o $@
x2xwin.o: resource.h nocursor.cur
endif
# -- creating lawyerese.c --
if WIN32
COPYING_FILES = COPYING.win32
else
COPYING_FILES =
endif
COPYING_FILES += COPYING
lawyerese.c: $(COPYING_FILES)
echo 'char *lawyerese =' > [email protected] && \
sed -e 's|.*|"\0\\n"|g' $^ >> [email protected] && \
echo ";" >> [email protected] && \
mv [email protected] $@ || rm -f [email protected]
CLEANFILES = lawyerese.c
# -- Various --
dist_doc_DATA = AUTHORS ChangeLog ChangeLog.old COPYING COPYING.win32 \
README.md docs/HostBasedAuthentication.txt \
docs/MIT-MAGIC-COOKIE-1.txt docs/SshTunneling.txt \
docs/X2xUsage.txt
EXTRA_DIST = keymap.h nocursor.cur resource.h