1#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10#   http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20AUTOMAKE_OPTIONS = subdir-objects nostdinc
21
22SUBDIRS = .
23
24lib_LTLIBRARIES = \
25			libluasocket.la \
26			liblualongnumber.la \
27			libluabpack.la \
28			libluabitwise.la
29
30libluasocket_la_SOURCES = \
31			src/luasocket.c \
32			src/usocket.c
33
34nobase_include_HEADERS = src/socket.h
35
36libluasocket_la_CPPFLAGS = $(AM_CPPFLAGS) $(LUA_INCLUDE) -DLUA_COMPAT_MODULE
37libluasocket_la_LDFLAGS = $(AM_LDFLAGS)
38libluasocket_la_LIBADD = $(LUA_LIB) -lm
39
40libluabpack_la_SOURCES = src/luabpack.c
41
42libluabpack_la_CPPFLAGS = $(AM_CPPFLAGS) $(LUA_INCLUDE) -DLUA_COMPAT_MODULE
43libluabpack_la_LDFLAGS = $(AM_LDFLAGS)
44libluabpack_la_LIBADD = liblualongnumber.la $(LUA_LIB) -lm
45
46libluabitwise_la_SOURCES = src/luabitwise.c
47
48libluabitwise_la_CPPFLAGS = $(AM_CPPFLAGS) $(LUA_INCLUDE) -DLUA_COMPAT_MODULE
49libluabitwise_la_LDFLAGS = $(AM_LDFLAGS)
50libluabitwise_la_LIBADD = $(LUA_LIB) -lm
51
52liblualongnumber_la_SOURCES = \
53		src/lualongnumber.c \
54		src/longnumberutils.c
55
56liblualongnumber_la_CPPFLAGS = $(AM_CPPFLAGS) $(LUA_INCLUDE) -DLUA_COMPAT_MODULE
57liblualongnumber_la_LDFLAGS = $(AM_LDFLAGS)
58liblualongnumber_la_LIBADD = $(LUA_LIB) -lm
59
60EXTRA_DIST = \
61		coding_standards.md \
62		TBinaryProtocol.lua \
63		TBufferedTransport.lua \
64		TCompactProtocol.lua \
65		TFramedTransport.lua \
66		Thrift.lua \
67		THttpTransport.lua \
68		TJsonProtocol.lua \
69		TMemoryBuffer.lua \
70		TProtocol.lua \
71		TServer.lua \
72		TSocket.lua \
73		TTransport.lua
74