mirror of
https://github.com/lunarmodules/lua-iconv.git
synced 2025-06-23 04:34:33 +02:00
Makefile improvements
git-svn-id: file:///var/svn/lua-iconv/trunk@44 9538949d-8f27-0410-946f-ce01ef448559
This commit is contained in:
parent
cb9c689d48
commit
26d609d7be
10
Makefile
10
Makefile
@ -1,5 +1,5 @@
|
|||||||
# luaiconv - Performs character set conversions in Lua
|
# luaiconv - Performs character set conversions in Lua
|
||||||
# (c) 2005-06 Alexandre Erwin Ittner <aittner@netuno.com.br>
|
# (c) 2005-08 Alexandre Erwin Ittner <aittner@gmail.com>
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
# Permission is hereby granted, free of charge, to any person obtaining
|
||||||
# a copy of this software and associated documentation files (the
|
# a copy of this software and associated documentation files (the
|
||||||
@ -29,6 +29,7 @@
|
|||||||
# Name of .pc file. "lua5.1" on Debian/Ubuntu
|
# Name of .pc file. "lua5.1" on Debian/Ubuntu
|
||||||
LUAPKG = lua5.1
|
LUAPKG = lua5.1
|
||||||
CFLAGS = `pkg-config $(LUAPKG) --cflags` -O3 -Wall
|
CFLAGS = `pkg-config $(LUAPKG) --cflags` -O3 -Wall
|
||||||
|
LFLAGS = -shared
|
||||||
INSTALL_PATH = `pkg-config $(LUAPKG) --variable=INSTALL_CMOD`
|
INSTALL_PATH = `pkg-config $(LUAPKG) --variable=INSTALL_CMOD`
|
||||||
LIBS = `pkg-config $(LUAPKG) --libs`
|
LIBS = `pkg-config $(LUAPKG) --libs`
|
||||||
|
|
||||||
@ -37,23 +38,26 @@ LIBS = `pkg-config $(LUAPKG) --libs`
|
|||||||
## enviroment.
|
## enviroment.
|
||||||
|
|
||||||
#CFLAGS = -I/usr/include/lua5.1/ -O3 -Wall
|
#CFLAGS = -I/usr/include/lua5.1/ -O3 -Wall
|
||||||
|
#LFLAGS = -shared
|
||||||
#LIBS = -llua5.1
|
#LIBS = -llua5.1
|
||||||
#INSTALL_PATH = /usr/lib/lua/5.1
|
#INSTALL_PATH = /usr/lib/lua/5.1
|
||||||
|
|
||||||
|
|
||||||
all: iconv.so
|
all: iconv.so
|
||||||
|
|
||||||
iconv.lo: luaiconv.c
|
iconv.lo: luaiconv.c
|
||||||
$(CC) -o iconv.lo -c $(CFLAGS) luaiconv.c
|
$(CC) -o iconv.lo -c $(CFLAGS) luaiconv.c
|
||||||
|
|
||||||
iconv.so: iconv.lo
|
iconv.so: iconv.lo
|
||||||
$(CC) -o iconv.so -shared $(LIBS) iconv.lo
|
$(CC) -o iconv.so $(LFLAGS) $(LIBS) iconv.lo
|
||||||
|
|
||||||
install: iconv.so
|
install: iconv.so
|
||||||
make test
|
make test
|
||||||
install -s iconv.so $(INSTALL_PATH)
|
install -D -s iconv.so $(INSTALL_PATH)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) iconv.so iconv.lo
|
$(RM) iconv.so iconv.lo
|
||||||
|
|
||||||
test: iconv.so test_iconv.lua
|
test: iconv.so test_iconv.lua
|
||||||
lua test_iconv.lua
|
lua test_iconv.lua
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user