aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-28 16:23:06 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-28 16:23:06 -0400
commit95306d919eed45ac1a24537f5cbfdcbfb588188c (patch)
tree5f8f2942a4314ef555cfb132945503f69ca848bf /Makefile
parentb2579636b7025477c70101f3553193b07e5ce006 (diff)
Include /usr/local/{include,lib}
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0a83241a..53d14e97 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
PREFIX=$(HOME)/.local
VERSION=0.0.1
CC=cc
-CCONFIG=-std=c2x -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -I. \
+CCONFIG=-std=c2x -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -I/usr/local/include \
-fno-signed-zeros -fno-finite-math-only -fno-signaling-nans -fno-trapping-math \
-fsanitize=signed-integer-overflow -fno-sanitize-recover -fvisibility=hidden -fdollars-in-identifiers \
-DGC_THREADS
LTO=-flto=auto -fno-fat-lto-objects -Wl,-flto
-LDFLAGS=
+LDFLAGS=-L/usr/local/lib
# MAKEFLAGS := --jobs=$(shell nproc) --output-sync=target
CWARN=-Wall -Wextra -Wno-format -Wshadow \
-Wno-pedantic \
@@ -43,8 +43,8 @@ build/tomo: $(STDLIB_OBJS) $(COMPILER_OBJS)
build/libtomo.so: $(STDLIB_OBJS)
@mkdir -p build
- @echo $(CC) $^ $(CFLAGS_PLACEHOLDER) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -Wl,-soname,libtomo.so -shared -o $@
- @$(CC) $^ $(CFLAGS) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -Wl,-soname,libtomo.so -shared -o $@
+ @echo $(CC) $^ $(CFLAGS_PLACEHOLDER) $(OSFLAGS) $(LDLIBS) -Wl,-soname,libtomo.so -shared -o $@
+ @$(CC) $^ $(CFLAGS) $(OSFLAGS) $(LDLIBS) -Wl,-soname,libtomo.so -shared -o $@
tags:
ctags src/*.[ch] src/stdlib/*.[ch]