File: build

package info (click to toggle)
elk 3.0-6
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 4,068 kB
  • ctags: 3,123
  • sloc: ansic: 20,686; lisp: 5,232; makefile: 419; awk: 91; sh: 21
file content (146 lines) | stat: -rwxr-xr-x 2,812 bytes parent folder | download | duplicates (3)
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
. ../../config/system
. ../../config/site

echo Building Makefile.local...
cat <<EOT >Makefile.local
# This Makefile was produced by running ./build in this directory.

SHELL=/bin/sh

CC= ${cc-cc}
CFLAGS= $cflags $obj_cflags
LINTFLAGS= $lintflags

INC=	../../include

H=	\$(INC)/compat.h\\
	\$(INC)/config.h\\
	\$(INC)/cstring.h\\
	\$(INC)/exception.h\\
	\$(INC)/extern.h\\
	\$(INC)/funcproto.h\\
	\$(INC)/gc.h\\
	\$(INC)/misc.h\\
	\$(INC)/object.h\\
	\$(INC)/param.h\\
	\$(INC)/stkmem.h\\
	\$(INC)/type.h\\
	xlib.h

C=	client.c\\
	color.c\\
	colormap.c\\
	cursor.c\\
	display.c\\
	error.c\\
	event.c\\
	extension.c\\
	font.c\\
	gcontext.c\\
	grab.c\\
	graphics.c\\
	init.c\\
	key.c\\
	objects.c\\
	pixel.c\\
	pixmap.c\\
	property.c\\
	text.c\\
	type.c\\
	util.c\\
	window.c\\
	wm.c

O=	client.o\\
	color.o\\
	colormap.o\\
	cursor.o\\
	display.o\\
	error.o\\
	event.o\\
	extension.o\\
	font.o\\
	gcontext.o\\
	grab.o\\
	graphics.o\\
	init.o\\
	key.o\\
	objects.o\\
	pixel.o\\
	pixmap.o\\
	property.o\\
	text.o\\
	type.o\\
	util.o\\
	window.o\\
	wm.o

all: \$(O) xlib.pre

.c.o:
	\$(CC) \$(CFLAGS) -I\$(INC) $x11_incl -c \$<

client.o:	\$(H) client.c
color.o:	\$(H) color.c
colormap.o:	\$(H) colormap.c
cursor.o:	\$(H) cursor.c
display.o:	\$(H) display.c
error.o:	\$(H) error.c
event.o:	\$(H) event.c
extension.o:	\$(H) extension.c
font.o:		\$(H) font.c
gcontext.o:	\$(H) gcontext.c
grab.o:		\$(H) grab.c
graphics.o:	\$(H) graphics.c
init.o:		\$(H) init.c
key.o:		\$(H) key.c
objects.o:	\$(H) objects.c
pixel.o:	\$(H) pixel.c
pixmap.o:	\$(H) pixmap.c
property.o:	\$(H) property.c
text.o:		\$(H) text.c
type.o:		\$(H) type.c
util.o:		\$(H) util.c
window.o:	\$(H) window.c
wm.o:		\$(H) wm.c

xlib.pre: \$(O)
	../../scripts/makedl \$@ \$(O)

install: xlib.pre
	-@if [ ! -d $install_dir/lib ]; then \\
	    echo mkdir $install_dir/lib; \\
	    mkdir $install_dir/lib; \\
	fi
	-@if [ ! -d $install_dir/lib/elk ]; then \\
	    echo mkdir $install_dir/lib/elk; \\
	    mkdir $install_dir/lib/elk; \\
	fi
	-@if [ ! -d $install_dir/lib/elk/obj ]; then \\
	    echo mkdir $install_dir/lib/elk/obj; \\
	    mkdir $install_dir/lib/elk/obj; \\
	fi
	cp xlib.pre $install_dir/lib/elk/obj/xlib.o
	-@if [ ! -d $install_dir/include ]; then \\
	    echo mkdir $install_dir/include; \\
	    mkdir $install_dir/include; \\
	fi
	-@if [ ! -d $install_dir/include/elk ]; then \\
	    echo mkdir $install_dir/include/elk; \\
	    mkdir $install_dir/include/elk; \\
	fi
	-@if [ ! -d $install_dir/include/elk/extensions ]; then \\
	    echo mkdir $install_dir/include/elk/extensions; \\
	    mkdir $install_dir/include/elk/extensions; \\
	fi
	cp xlib.h $install_dir/include/elk/extensions

lint:
	lint \$(LINTFLAGS) -I\$(INC) $x11_incl \$(C)

clean:
	rm -f *.o xlib.pre core

distclean:
	rm -f *.o xlib.pre core lint.out Makefile.local
EOT