summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-10-11 18:41:47 -0400
committerJonathan Bradley <jcb@pikum.xyz>2024-10-11 18:41:47 -0400
commit887a9f559e71d8a788fbfe210f126eda5ba7969b (patch)
tree23a282241115abad7f62f0c7b4f0973cab0c4952 /config.mk
initial commit: macros, memory, tests
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..cf3ab50
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,26 @@
+# pkh version
+VERSION = 0.0.1
+
+# paths
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+
+PKG_CONFIG = pkg-config
+
+# includes and libs
+INCS = \
+
+LIBS = -lm \
+
+# flags
+# -pedantic
+SHARED_FLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
+ -DVERSION=\"$(VERSION)\" -DPK_MEMORY_DEBUGGER -DPK_IMPLEMENTATION \
+
+CPPFLAGS += -Wall $(INCS) $(SHARED_FLAGS)
+CFLAGS += -Wall $(INCS) $(SHARED_FLAGS)
+LDFLAGS = $(LIBS)
+
+# compiler and linker
+CC ?= /usr/bin/clang
+CXX ?= /usr/bin/clang++