This repository was archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.linux
More file actions
117 lines (98 loc) · 1.91 KB
/
config.linux
File metadata and controls
117 lines (98 loc) · 1.91 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
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
111
112
113
114
115
#
# Module name
#
MODULE=luagraph
#
# Lua Version to use:
#
LUAVERS = 5.1
#
# Lua Installation path
#
LUA = ../..
#
# Repository (SVN)
#
#REPOSITORY=file:///J:/leuwer/svn/lua/lua-modules/trunk
REPOSITORY=file:///windows/d/leuwer/svn/lua/lua-modules/trunk
#
# Root of Lua Installation
#
INSTALL_ROOT=/usr/local
INSTALL_SHARE=$(INSTALL_ROOT)/share/lua/$(LUAVERS)
INSTALL_LIB=$(INSTALL_ROOT)/lib/lua/$(LUAVERS)
# ======================================================
# You probably do not need to change anything below
#
#
# Your system. Expands to 'GNU/Linux' or 'Cygwin'
#
SYSTEM = $(shell uname -o)
#
# Compat-5.1 location
#
COMPAT=compat-5.1r5
#
# Lua specifics
#
ifeq ($(LUAVERS), 5.0)
LV := 50
DEFCOMPAT=
LUAINC=$(LUA)/../include
LUABIN=$(LUA)/bin/lua$(LV)
LUALIB=$(LUA)/../lib
TESTLUA=test/test50.lua
LUAGRAPH=graph50.lua
else
LV := 51
DEFCOMPAT=-DCOMPAT_H
LUAINC=$(LUA)/../src
LUABIN=$(LUA)/src/lua
LUALIB=$(LUA)/../lib
TESTLUA=test/test.lua
LUAGRAPH=graph51.lua
endif
#
# Platform specific differences
#
ifeq ($(SYSTEM), Cygwin)
# Cygwin: need to link against Lua libraries
EXT = dll
LIBS=-llua$(LV)
else
# Linux
EXT = so
LIBS=
endif
#
# Current Version of LuaGRAPH
#
VERSION=1.0.3
#
# Graphviz version
#
GVVERSION=2.20
#
# Targets
#
LUAGRAPH_SO=graph.$(EXT).$(VERSION)
#
# Compiler and Linker
#
DEF=$(DEFCOMPAT) -DVERSION='"$(VERSION)"' -DGVVERSION='"$(GVVERSION)"'
CC=gcc
GVROOT=/usr/include
#GVROOT=/cygdrive/c/Programme/Graphviz\ 2.21
CFLAGS=-I$(GVROOT) -I$(LUAINC) -I$(COMPAT) $(DEF) -Wall -O2
#CFLAGS=-I$(GVROOT)/include/graphviz -I$(LUAINC) -I$(COMPAT) $(DEF) -Wall -ggdb
LDFLAGS= -O -Wl,-E -Wl,--rpath -Wl,$(GVROOT)/lib -shared -L$(GVROOT)/lib
LIBS+= -lgvc -lgraph -lcdt -lpathplan -lltdl
LD=gcc
#
# Distribution stuff
#
EXPORTDIR=$(HOME)/exports
DISTNAME=$(MODULE)-$(VERSION)
DISTARCH=$(DISTNAME).tar.gz
CVSMODULE=lua/lua-$(LUAVERS)/modules/$(MODULE)
SVNMODULE=$(MODULE)-$(VERSION)