forked from dottedmag/x2x
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
53 lines (35 loc) · 864 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
#
# Copyright (c) 2008 Mikhail Gusarov <[email protected]>
#
# BSD-3
#
AM_CFLAGS = $(X11_CFLAGS) -Wall
AM_LDFLAGS = $(X11_LIBS)
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
AM_LDFLAGS += -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 --
EXTRA_DIST = ChangeLog.old COPYING.win32 keymap.h nocursor.cur resource.h x2x.1