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:
9
Makefile
9
Makefile
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user