public
Description: Lua-RPC for Lua 5.1.x
Homepage:
Clone URL: git://github.com/jsnyder/luarpc.git
luarpc / Makefile
100644 37 lines (28 sloc) 1.479 kb
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
##############################################################################
# Lua-RPC library, Copyright (C) 2001 Russell L. Smith. All rights reserved. #
# Email: russ@q12.org Web: www.q12.org #
# For documentation, see http://www.q12.org/lua. For the license agreement, #
# see the file LICENSE that comes with this distribution. #
##############################################################################
 
# the path to lua
LUAINC=/usr/include/lua5.1/
LUALIB=/usr/lib
 
LIBTOOL=libtool --tag=CC --quiet
 
# compiler, arguments and libs for GCC under unix
CFLAGS=-ansi -std=c99 -pedantic -g
 
# compiler, arguments and libs for GCC under windows
#CC=gcc -Wall
#CFLAGS=-DWIN32
#LIB=-llua -llualib -lwsock32 -lm
 
##############################################################################
# don't change anything below this line
 
all: module
 
module: luarpc.c luarpc_socket.c
$(LIBTOOL) --mode=compile cc $(CFLAGS) -I$(LUAINC) -c luarpc.c
$(LIBTOOL) --mode=compile cc $(CFLAGS) -I$(LUAINC) -c luarpc_socket.c
$(LIBTOOL) --mode=compile cc $(CFLAGS) -I$(LUAINC) -c luarpc_fifo.c
$(LIBTOOL) --mode=compile cc $(CFLAGS) -I$(LUAINC) -c luarpc_serial.c
$(LIBTOOL) --mode=link cc -module -rpath $(LUALIB) -o libluarpc.la luarpc.lo luarpc_socket.lo luarpc_fifo.lo luarpc_serial.lo
(mv .libs/libluarpc.so.0.0.0 luarpc.so || mv .libs/libluarpc.0.so luarpc.so)
 
clean:
-rm -rf *~ *.o *.lo *.la *.obj a.out .libs core