diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-10-11 22:37:13 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-10-11 22:37:13 -0400 |
| commit | 7889de050105a9fba827c46eaae767490c75177c (patch) | |
| tree | bd05d8ec6779e947e45c25887ef31890525b7f51 /Makefile | |
| parent | b70fe8a9a945b9822d437c09f157a3fd81781617 (diff) | |
pkstr: add
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -9,12 +9,15 @@ SRC = \ pkmacros.h \ pkmem-types.h \ pkmem.h \ + pkstr.h \ test/pkmacros.c \ test/pkmacros.cpp \ test/pkmem-types.c \ test/pkmem-types.cpp \ test/pkmem.c \ test/pkmem.cpp \ + test/pkstr.c \ + test/pkstr.cpp \ OBJ = $(SRC:%.c=.o) PPOBJ = $(SRC:%.cpp=.so) @@ -22,10 +25,14 @@ HOBJ = $(SRC:%.h=.gch) HPPOBJ = $(SRC:%.h=.gchpp) all: options .WAIT clean .WAIT \ - pkmacros pkmem-types pkmem \ + pkmacros \ + pkmem-types \ + pkmem \ + pkstr \ test-pkmem test-pkmem-cpp \ test-types-pkmem test-types-pkmem-cpp \ test-pkmacros test-pkmacros-cpp \ + test-pkstr test-pkstr-cpp \ options: @echo at-suite build options: @@ -55,6 +62,8 @@ pkmem-types: pkmacros pkmem-types.gch pkmem-types.gchpp pkmem: pkmem-types pkmem.gch pkmem.gchpp +pkstr: pkmacros pkstr.gch pkstr.gchpp + test-pkmacros: test/pkmacros.o $(CC) -g -O0 -std=c2x $(CFLAGS) -o test/$@ $^ $(LDFLAGS) @@ -73,10 +82,17 @@ test-pkmem: test/pkmem.o test-pkmem-cpp: test/pkmem.so $(CXX) -g -O0 -std=c++23 $(CPPFLAGS) -o test/$@ $^ $(LDFLAGS) +test-pkstr: test/pkstr.o + $(CC) -g -O0 -std=c2x $(CFLAGS) -o test/$@ $^ $(LDFLAGS) + +test-pkstr-cpp: test/pkstr.so + $(CXX) -g -O0 -std=c++23 $(CPPFLAGS) -o test/$@ $^ $(LDFLAGS) + test: pkmacros pkmem-types pkmem 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: @echo "" ./test/test-pkmacros ; echo Result: $$? "\n" @@ -85,6 +101,8 @@ test: ./test/test-pkmem-types-cpp ; echo Result: $$? "\n" ./test/test-pkmem ; echo Result: $$? "\n" ./test/test-pkmem-cpp ; echo Result: $$? "\n" + ./test/test-pkstr ; echo Result: $$? "\n" + ./test/test-pkstr-cpp ; echo Result: $$? "\n" clean: rm -f *.plist *.gch *.gchpp *.o *.so test/*.o test/*.so test/test-* |
