We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce7ee0 commit acc8d6fCopy full SHA for acc8d6f
1 file changed
Makefile
@@ -127,6 +127,8 @@ else
127
PLATFORM_NATWIN_SRC_FILES = agg_platform_support_x11.cpp
128
endif
129
130
+GRAPH_LUA_SRC = graph/init.lua graph/contour.lua
131
+
132
HOST_CP = cp
133
HOST_RM = rm -f
134
CP_REL = cp --parents
@@ -166,6 +168,14 @@ $(LIBNATWIN_SO): $(NATWIN_OBJ_FILES) $(LIBGRAPH_SO)
166
168
$(CC) -shared $(NATWIN_OBJ_FILES) -o $@ $(LIBS) -L. -lgraphcore -lsupc++
167
169
strip --strip-unneeded $@
170
171
+install: $(TARGETS)
172
+ mkdir -p $(LUA_PATH)
173
+ mkdir -p $(LUA_DLLPATH)
174
+ cp $(LIBGRAPH_SO) $(LUA_DLLPATH)/graphcore.so
175
+ cp $(LIBNATWIN_SO) $(LUA_DLLPATH)/natwin.so
176
+ ln -s $(LUA_DLLPATH)/graphcore.so $(SYSTEM_LIBPATH)/libgraphcore.so
177
+ $(CP_REL) $(GRAPH_LUA_SRC) $(LUA_PATH)
178
179
clean:
180
$(HOST_RM) *.o *.so *.dll $(TARGETS)
181
0 commit comments