File: Makefile.am

package info (click to toggle)
x2x 1.30-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 444 kB
  • sloc: ansic: 3,275; makefile: 40; sh: 1
file content (54 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (4)
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 <dottedmag@dottedmag.net>
#
# 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 =' > $@.tmp && \
		sed -e 's|.*|"\0\\n"|g' $^ >> $@.tmp && \
		echo ";" >> $@.tmp && \
		mv $@.tmp $@ || rm -f $@.tmp

CLEANFILES = lawyerese.c

# -- Various --

dist_doc_DATA = AUTHORS ChangeLog ChangeLog.old COPYING COPYING.win32	\
    README docs/HostBasedAuthentication.txt				\
    docs/MIT-MAGIC-COOKIE-1.txt docs/SshTunneling.txt			\
    docs/X2xUsage.txt


EXTRA_DIST = keymap.h nocursor.cur resource.h