summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-11-01 09:33:00 -0400
committerJonathan Bradley <jcb@pikum.xyz>2024-11-01 09:33:00 -0400
commit2f4944595da6011e15ba2a65637c916665bc95e0 (patch)
treeb062b7a9aac717f76f33dd9c8a40aef03e1bae41 /Makefile
parente4d71f20517488dd48cec43a870af496b0f90c5b (diff)
pkev: first working version
This is a 'grug' implementation. Use the following defines to control size: PK_EV_MAX_COUNT = 16 PK_EV_MAX_CB_COUNT = 8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a264610..bfab0f5 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ SRC = \
test/pkmem.cpp \
test/pkstr.c \
test/pkstr.cpp \
+ test/pkev.c \
+ test/pkev.cpp \
OBJ = $(SRC:%.c=.o)
PPOBJ = $(SRC:%.cpp=.so)
@@ -112,11 +114,18 @@ test-pkstr: test/pkstr.o
test-pkstr-cpp: test/pkstr.so
$(CXX) -g -O0 -std=c++23 $(CPPFLAGS) -o test/$@ $^ $(LDFLAGS)
+test-pkev: test/pkev.o
+ $(CC) -g -O0 -std=c2x $(CFLAGS) -o test/$@ $^ $(LDFLAGS)
+
+test-pkev-cpp: test/pkev.so
+ $(CXX) -g -O0 -std=c++23 $(CPPFLAGS) -o test/$@ $^ $(LDFLAGS)
+
test: pkmacros pkmem-types pkmem pkstr pkev
test: test-pkmacros test-pkmacros-cpp
test: test-pkmem-types test-pkmem-types-cpp
test: test-pkmem test-pkmem-cpp
test: test-pkstr test-pkstr-cpp
+test: test-pkev test-pkev-cpp
test:
@echo ""
./test/test-pkmacros ; echo Result: $$? "\n"
@@ -127,6 +136,8 @@ test:
./test/test-pkmem-cpp ; echo Result: $$? "\n"
./test/test-pkstr ; echo Result: $$? "\n"
./test/test-pkstr-cpp ; echo Result: $$? "\n"
+ ./test/test-pkev ; echo Result: $$? "\n"
+ ./test/test-pkev-cpp ; echo Result: $$? "\n"
clean:
rm -f *.plist *.gch *.gchpp *.o *.so test/*.o test/*.so test/test-*