Skip to content

Commit 1cfab2a

Browse files
committed
enable libraries and headers.
1 parent d39454a commit 1cfab2a

File tree

9 files changed

+35055
-3314
lines changed

9 files changed

+35055
-3314
lines changed

Makefile.am

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
bin_PROGRAMS = glaze
2-
3-
GLAZE_CORE_SRCS = \
1+
## lib
2+
GLAZE_LIB_SRCS = \
43
src/core.cc \
5-
src/core.h \
64
src/object.cc \
7-
src/object.h \
8-
src/shared.h \
95
src/env.cc \
10-
src/env.h \
116
src/eval.cc \
12-
src/eval.h \
137
src/gc.cc \
148
src/gc.h \
159
src/primitives.cc \
@@ -18,12 +12,29 @@ src/reader.cc \
1812
src/reader.h \
1913
src/symbol_table.cc \
2014
src/symbol_table.h \
21-
src/glaze.cc \
22-
src/glaze.h \
23-
src/main.cc
15+
src/glaze.cc
2416

25-
glaze_CPPFLAGS =
17+
GLAZE_LIB_HDRS = \
18+
src/core.h \
19+
src/object.h \
20+
src/env.h \
21+
src/eval.h \
22+
src/shared.h \
23+
src/glaze.h
2624

27-
glaze_LDFLAGS = -lgc -lmpc
25+
lib_LTLIBRARIES = libglaze.la
26+
libglaze_ladir=$(includedir)/glaze
27+
libglaze_la_CPPFLAGS =
28+
libglaze_la_LDFLAGS = -lgc # -lmpc
29+
libglaze_la_HEADERS = $(GLAZE_LIB_HDRS)
30+
libglaze_la_SOURCES = $(GLAZE_LIB_SRCS)
31+
32+
## bin
33+
bin_PROGRAMS = glaze
34+
GLAZE_CORE_SRCS = \
35+
src/glaze.h \
36+
src/main.cc
2837

29-
glaze_SOURCES = $(GLAZE_CORE_SRCS)
38+
glaze_LDADD = libglaze.la
39+
glaze_SOURCES = $(GLAZE_CORE_SRCS)
40+
glaze_LDFLAGS = -static

0 commit comments

Comments
 (0)