-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
110 lines (96 loc) · 2.43 KB
/
Makefile.am
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
bin_PROGRAMS =
lib_LTLIBRARIES =
noinst_HEADERS =
noinst_LTLIBRARIES =
dist_gjsjs_DATA =
gjsnative_LTLIBRARIES =
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST =
gjstest_files_with_tests =
TEST_PROGS =
check_PROGRAMS = $(TEST_PROGS)
gjsjsdir = @gjsjsdir@
gjstweenerdir = @gjsjsdir@/tweener
gjsnativedir = @gjsnativedir@
gjsincludedir = $(includedir)/gjs-1.0
########################################################################
nobase_gjsinclude_HEADERS = \
gjs/context.h \
gjs/importer.h \
gjs/gjs.h \
gjs/jsapi-util.h \
gjs/mem.h \
gjs/native.h
noinst_HEADERS += \
gjs/compat.h \
gjs/context-jsapi.h \
gjs/jsapi-private.h \
gjs/profiler.h \
util/crash.h \
util/error.h \
util/glib.h \
util/log.h \
util/misc.h
########################################################################
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gjs-1.0.pc
EXTRA_DIST += \
gjs-1.0.pc.in
########################################################################
gjs_directory_defines = \
-DGJS_TOP_SRCDIR=\"$(top_srcdir)\" \
-DGJS_JS_DIR=\"$(gjsjsdir)\" \
-DGJS_NATIVE_DIR=\"$(gjsnativedir)\"
########################################################################
lib_LTLIBRARIES += libgjs.la
libgjs_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(GJS_CFLAGS) \
$(gjs_directory_defines)
libgjs_la_CFLAGS = \
$(AM_CFLAGS)
libgjs_la_LDFLAGS = \
-export-symbols-regex "^[^_]" -version-info 0:0:0 \
-R $(FIREFOX_JS_LIBDIR) -rdynamic
libgjs_la_LIBADD = \
$(GJS_LIBS)
libgjs_la_SOURCES = \
gjs/context.c \
gjs/importer.c \
gjs/jsapi-private.cpp \
gjs/jsapi-util.c \
gjs/jsapi-util-array.c \
gjs/jsapi-util-error.c \
gjs/jsapi-util-string.c \
gjs/mem.c \
gjs/native.c \
gjs/profiler.c \
gjs/stack.c \
util/error.c \
util/glib.c \
util/crash.c \
util/log.c \
util/misc.c
gjstest_files_with_tests += \
gjs/jsapi-util-array.c \
gjs/jsapi-util-error.c \
gjs/jsapi-util-string.c \
gjs/stack.c \
util/glib.c
include Makefile-gjs-dbus.am
include Makefile-gi.am
include Makefile-modules.am
include Makefile-examples.am
########################################################################
bin_PROGRAMS += gjs-console
gjs_console_CFLAGS = \
$(AM_CFLAGS) \
$(GJS_CFLAGS)
gjs_console_LDADD = \
libgjs.la
gjs_console_LDFLAGS = -R $(FIREFOX_JS_LIBDIR) -rdynamic
gjs_console_SOURCES = gjs/console.c
install-exec-hook:
(cd $(DESTDIR)$(bindir) && ln -sf gjs-console$(EXEEXT) gjs$(EXEEXT))
include Makefile-test.am