forked from luaposix/luaposix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.mk
160 lines (126 loc) · 3.5 KB
/
local.mk
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Local Make rules.
# Written by Gary V. Vaughan, 2013
# Copyright (C) 2013-2014 Gary V. Vaughan
# This file is part of luaposix.
# See README for license.
## ------------ ##
## Environment. ##
## ------------ ##
curses_cpath = $(abs_builddir)/ext/curses/$(objdir)/?$(shrext)
posix_cpath = $(abs_builddir)/ext/posix/$(objdir)/?$(shrext)
std_cpath = $(curses_cpath);$(posix_cpath);$(LUA_CPATH)
std_path = $(abs_srcdir)/lib/?.lua;$(LUA_PATH)
LUA_ENV = LUA_PATH="$(std_path)" LUA_CPATH="$(std_cpath)"
## ---------- ##
## Bootstrap. ##
## ---------- ##
AM_CPPFLAGS += -I $(srcdir)/ext/include
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
old_NEWS_hash = 7416f7c2db8d17f396b49cf2386f93a6
update_copyright_env = \
UPDATE_COPYRIGHT_HOLDER='(Gary V. Vaughan|Reuben Thomas|luaposix authors)' \
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
UPDATE_COPYRIGHT_FORCE=1
## ------------- ##
## Declarations. ##
## ------------- ##
examplesdir = $(docdir)/examples
modulesdir = $(docdir)/modules
dist_data_DATA =
dist_doc_DATA =
dist_examples_DATA =
dist_modules_DATA =
include specs/specs.mk
## ------ ##
## Build. ##
## ------ ##
EXTRA_LTLIBRARIES += ext/curses/curses_c.la
lib_LTLIBRARIES += ext/posix/posix_c.la $(WANTEDLIBS)
dist_lua_DATA += \
lib/posix.lua \
$(WANTEDLUA) \
$(NOTHING_ELSE)
luaposixdir = $(luadir)/posix
dist_luaposix_DATA = \
lib/posix/sys.lua \
$(NOTHING_ELSE)
ext_posix_posix_c_la_SOURCES = \
ext/posix/posix.c \
$(NOTHING_ELSE)
ext_posix_posix_c_la_CFLAGS = \
$(POSIX_EXTRA_CFLAGS)
ext_posix_posix_c_la_LDFLAGS = \
-module -avoid-version $(POSIX_EXTRA_LDFLAGS)
ext_curses_curses_c_la_SOURCES = \
ext/curses/curses.c \
$(NOTHING_ELSE)
ext_curses_curses_c_la_LDFLAGS = \
-module -avoid-version $(CURSES_LIB) -rpath '$(libdir)'
## -------------- ##
## Documentation. ##
## -------------- ##
dist_doc_DATA += \
doc/curses.html \
doc/curses_c.html \
doc/index.html \
doc/ldoc.css \
$(NOTHING_ELSE)
dist_modules_DATA += \
doc/modules/posix.html \
doc/modules/posix.sys.html \
$(NOTHING_ELSE)
dist_examples_DATA += \
doc/examples/dir.lua.html \
doc/examples/fork.lua.html \
doc/examples/fork2.lua.html \
doc/examples/getopt.lua.html \
doc/examples/glob.lua.html \
doc/examples/limit.lua.html \
doc/examples/lock.lua.html \
doc/examples/netlink-uevent.lua.html \
doc/examples/ping.lua.html \
doc/examples/poll.lua.html \
doc/examples/signal.lua.html \
doc/examples/socket.lua.html \
doc/examples/termios.lua.html \
doc/examples/tree.lua.html \
$(NOTHING_ELSE)
$(dist_doc_DATA): ext/curses/curses.c build-aux/make_lcurses_doc.pl
test -d $(builddir)/doc || mkdir $(builddir)/doc
$(PERL) build-aux/make_lcurses_doc.pl
if HAVE_LDOC
$(LDOC) -c build-aux/config.ld -d $(abs_srcdir)/doc .
else
$(MKDIR_P) doc
touch doc/index.html doc/ldoc.css
endif
doc: $(dist_doc_DATA) $(dist_examples_DATA) $(dist_modules_DATA)
## ------------- ##
## Distribution. ##
## ------------- ##
EXTRA_DIST += \
build-aux/config.ld.in \
build-aux/make_lcurses_doc.pl \
examples/dir.lua \
examples/fork.lua \
examples/fork2.lua \
examples/getopt.lua \
examples/glob.lua \
examples/limit.lua \
examples/lock.lua \
examples/netlink-uevent.lua \
examples/ping.lua \
examples/poll.lua \
examples/signal.lua \
examples/socket.lua \
examples/termios.lua \
examples/tree.lua \
ext/include/strlcpy.c \
ext/include/lua52compat.h \
$(NOTHING_ELSE)
MAINTAINERCLEANFILES += \
doc/index.html \
doc/ldoc.css \
$(dist_examples_DATA) \
$(dist_modules_DATA) \
$(NOTHING_ELSE)