commit 84ddb4d8853a91406a0d0edfb9e6dd46f43b6b08
parent f314a19419c3136dbf1af34acaf871ad3fce937e
Author: lash <dev@holbrook.no>
Date: Sun, 2 Mar 2025 18:54:05 +0000
Add toplevel makefile
Diffstat:
4 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
@@ -0,0 +1,10 @@
+all:
+ make -C src
+
+test: all
+ make -C src test
+
+clean:
+ make -C src clean
+
+.PHONY: clean
diff --git a/src/Makefile b/src/Makefile
@@ -1,15 +1,16 @@
all: core dummy
-core: asn1
+core:
make -C lq
asn1:
- make -C asn1
+ make -C asn1 all
+
dummy:
make -C crypto dummy
make -C mem std
-test: core dummy
+test: asn1 core dummy
make -C test
clean:
@@ -18,3 +19,5 @@ clean:
make -C test clean
make -C mem clean
make -C crypto clean
+
+.PHONY: clean asn1
diff --git a/src/lq/Makefile b/src/lq/Makefile
@@ -1,7 +1,7 @@
OBJS := $(patsubst %.c,%.o,$(filter-out main.c,$(wildcard *.c)))
INCLUDES := -I.. -I../aux/include
CFLAGS += $(INCLUDES) -Wall
-LIBS := `pkg-config --libs libtasn1` -L../aux/lib -llash ../asn1/defs_asn1_tab.o
+LIBS := `pkg-config --libs libtasn1` -L../aux/lib -llash
LDFLAGS += $(LIBS)
diff --git a/src/lq/cert.c b/src/lq/cert.c
@@ -11,13 +11,6 @@ static LQPubKey nokey = {
.lokey = "",
.lolen = 0,
};
-static LQCert noparent = {
- .parent = 0,
- .request = 0,
- .request_sig = 0,
- .response = 0,
- .response_sig = 0,
-};
static LQMsg nomsg = {
.data = "",
.len = 0,