This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathMakefile.server
More file actions
executable file
·52 lines (40 loc) · 1.73 KB
/
Makefile.server
File metadata and controls
executable file
·52 lines (40 loc) · 1.73 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
NAME=server-community
TYPE=application
include ../rules/environment.linux.makefile
SOURCES=\
stacksecurity.cpp \
linuxstubs.cpp
SOURCE_DIRS=
CUSTOM_OVERRIDE_DEFINES=1
CUSTOM_DEFINES=\
_SERVER _LINUX_SERVER __LITTLE_ENDIAN__
CUSTOM_INCLUDES=\
./src
CUSTOM_DEPS=libkernel-server.a
CUSTOM_LIBS=pcre png jpeg z foundation stdscript ffi gif graphics skia kernel-server
CUSTOM_STATIC_LIBS=curl icudata icui18n icuio icule iculx icuuc customssl customcrypto $(MODE_STATIC_LIBS)
CUSTOM_DYNAMIC_LIBS=dl m pthread rt
CUSTOM_CCFLAGS=\
-Wall -Wno-unused-variable -Wno-switch -Wno-non-virtual-dtor -fno-exceptions -fno-rtti -fno-strict-aliasing \
-fmessage-length=0
CUSTOM_LDFLAGS_LTO=-export-dynamic -Wl,-x
include ../rules/application.linux.makefile
INSTALL_DIR?=/opt/livecode/server
.PHONY: server-install
server-install:
# Executables
install -D $(BUILD_DIR)/server-community $(INSTALL_DIR)/livecode-server
install -D $(BUILD_DIR)/lc-compile $(INSTALL_DIR)/lc-compile
install -D $(BUILD_DIR)/lc-run $(INSTALL_DIR)/lc-run
# Externals
install -m 0644 -D $(BUILD_DIR)/server-revdb.so $(INSTALL_DIR)/externals/revdb.so
install -m 0644 -D $(BUILD_DIR)/server-revxml.so $(INSTALL_DIR)/externals/revxml.so
install -m 0644 -D $(BUILD_DIR)/server-revzip.so $(INSTALL_DIR)/externals/revzip.so
# DB drivers
install -m 0644 -D $(BUILD_DIR)/server-dbmysql.so $(INSTALL_DIR)/drivers/dbmysql.so
install -m 0644 -D $(BUILD_DIR)/server-dbodbc.so $(INSTALL_DIR)/drivers/dbodbc.so
install -m 0644 -D $(BUILD_DIR)/server-dbpostgresql.so $(INSTALL_DIR)/drivers/dbpostgresql.so
install -m 0644 -D $(BUILD_DIR)/server-dbsqlite.so $(INSTALL_DIR)/drivers/dbsqlite.so
# Modules
install -d $(INSTALL_DIR)/modules
install -m 0644 -t $(INSTALL_DIR)/modules $(MODULE_DIR)/*.lci