From 2f4944595da6011e15ba2a65637c916665bc95e0 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 1 Nov 2024 09:33:00 -0400 Subject: 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 --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') 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-* -- cgit v1.2.3