root / trunk / ext / lua / Makefile

Revision 307, 0.9 kB (checked in by slact, 7 months ago)

makefile PREFIX now normal.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# change these to reflect your Lua installation
2# Default installation prefix
3PREFIX=/usr/local
4
5# System's libraries directory (where binary libraries are installed)
6LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
7
8# System's lua directory (where Lua libraries are installed)
9LUA_DIR= $(PREFIX)/share/lua/5.1
10
11LUAINC= $(PREFIX)/include
12LUALIB= $(PREFIX)/lib
13LUABIN= $(PREFIX)/bin
14
15CFLAGS= $(INCS) $(WARN)
16WARN= -Wall
17INCS= -I$(LUAINC)
18LIBS=-lsyck -L$(LUALIB)
19
20MYNAME=syck
21OBJS= $(MYNAME).o
22T= $(MYNAME).so
23
24all:    $T test
25
26install:
27        cp -f ./syck.so $(LUA_LIBDIR)
28        cp -f ./yaml.lua $(LUA_DIR)
29
30uninstall:
31        rm -f $(LUA_DIR)/yaml.lua
32        rm -f $(LUA_LIBDIR)/syck.so
33       
34test: $t
35        $(LUABIN)/lua test.lua
36        @echo "built and tested successfully. run make install to install, or just move the libs manually"
37
38$T:     $(OBJS)
39        $(CC) -o $@ -shared $(OBJS) $(LIBS)
40
41clean:
42        rm -f $(OBJS) $T core core.* a.out test.dump
43       
44ready:
Note: See TracBrowser for help on using the browser.