1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-06 00:28:08 +00:00

Add all-symbols, easy way to see all symbols in an environment.

This commit is contained in:
Calvin Rose
2018-05-21 22:08:16 -04:00
parent de59c57e48
commit f8bda3af51
3 changed files with 32 additions and 9 deletions

View File

@@ -32,13 +32,20 @@ BINDIR=$(PREFIX)/bin
# TODO - when api is finalized, only export public symbols instead of using rdynamic
# which exports all symbols. Saves a few KB in binary.
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -rdynamic -fpic -O2
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2
CLIBS=-lm -ldl
PREFIX=/usr/local
DST_TARGET=dst
DST_LIBRARY=libdst.so
DEBUGGER=gdb
UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)
# Add other macos/clang flags
else
CFLAGS:=$(CFLAGS) -rdynamic
endif
# Source headers
DST_HEADERS=$(sort $(wildcard src/include/dst/*.h))
DST_LIBHEADERS=$(sort $(wildcard src/include/headerlibs/*.h))