forked from luaposix/luaposix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.mk
110 lines (85 loc) · 2.34 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
# Local Make rules.
## ------------ ##
## 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 = 48864294e8740dbc040c3edfd6b2d1c4
## ------------- ##
## Declarations. ##
## ------------- ##
dist_data_DATA =
dist_doc_DATA =
include specs/specs.mk
## ------ ##
## Build. ##
## ------ ##
EXTRA_LTLIBRARIES += ext/curses/curses_c.la
lib_LTLIBRARIES += ext/posix/posix_c.la $(WANTEDLIBS)
dist_data_DATA += lib/posix.lua $(WANTEDLUA)
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_CPPFLAGS = \
$(AM_CPPFLAGS) -I $(srcdir)/ext/curses
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)
examplesdir = $(docdir)/examples
examples_DATA = $(wildcard examples/*.lua)
doc: $(dist_doc_DATA)
## ------------- ##
## Distribution. ##
## ------------- ##
EXTRA_DIST += \
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/poll.lua \
examples/signal.lua \
examples/socket.lua \
examples/termios.lua \
ext/curses/strlcpy.c \
ext/include/lua52compat.h \
ext/posix/config.ld \
$(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) $(srcdir)/ext/posix
else
$(MKDIR_P) doc
touch doc/index.html doc/ldoc.css
endif
MAINTAINERCLEANFILES += \
doc/index.html \
doc/ldoc.css \
$(NOTHING_ELSE)