summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-01-10 19:16:46 -0300
committerEuAndreh <eu@euandre.org>2025-01-10 19:16:46 -0300
commit453690061035661435407594f2c3d8304671bf7b (patch)
tree0c63a279ac7d642fca75467df8e794a115d6f1a4 /Makefile
parentsrc/random.h: Add initial implementation of random_{new,free,generate}() (diff)
downloadpindaiba-453690061035661435407594f2c3d8304671bf7b.tar.gz
pindaiba-453690061035661435407594f2c3d8304671bf7b.tar.xz
Replace src/config.h with <s.h>; incorporate changes from other projects
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 60fee9d..f89520b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
.POSIX:
DATE = 1970-01-01
VERSION = 0.1.0
-NAME = pindaibabs
-NAME_UC = PindaĆ­ba bootstrap
+NAME = pindaiba
+NAME_UC = $(NAME)
LANGUAGES = en
## Installation prefix. Defaults to "/usr".
PREFIX = /usr
@@ -16,7 +16,7 @@ MANDIR = $(SHAREDIR)/man
EXEC = ./
## Where to store the installation. Empty by default.
DESTDIR =
-LDLIBS = -lpthread -lendiannessbs -lsiphashbs
+LDLIBS = -lendianness -lsiphash
@@ -51,6 +51,12 @@ tests.o = $(tests.c:.c=.o)
tests.a = $(tests.c:.c=.a)
tests.bin = $(tests.c:.c=.bin)
+objects = \
+ $(sources.o) \
+ $(tests.o) \
+ src/main.o \
+ tests/slurp.o \
+
archives = \
lib$(NAME).a \
$(tests.a) \
@@ -59,22 +65,19 @@ archives = \
sources = \
$(sources.c) \
$(sources.h) \
- src/config.h.in \
- src/config.h \
+ src/meta.h.in \
+ src/meta.h \
src/main.c \
src/$(NAME).h \
$(catalogs.msg) \
derived-assets = \
+ $(objects) \
$(archives) \
- src/config.h \
+ src/meta.h \
$(catalogs.cat) \
- $(sources.o) \
- $(tests.o) \
$(tests.bin) \
- tests/slurp.o \
- src/main.o \
$(NAME).bin \
side-assets = \
@@ -91,10 +94,8 @@ all: $(derived-assets)
lib$(NAME).a: $(sources.o)
$(NAME).a: $(sources.o) src/main.o
-src/config.h: Makefile deps.mk
-$(sources.o) $(tests.o) src/main.o: Makefile deps.mk src/config.h
+src/meta.h $(objects): Makefile deps.mk
src/main.o: src/$(NAME).h
-tests/slurp.o: src/config.h
$(archives):