diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-12-17 16:10:30 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-12-17 16:15:05 -0500 |
| commit | 1dc3bc5db3b3ba60399bee4753abe2f78374a2dd (patch) | |
| tree | eaad96f0a30010c00294a687658f6f6e421f0e03 /Makefile | |
| parent | 33484cccdea2790721fb20f75588d1ed4fb53017 (diff) | |
pktmr: first-pass, all macros, no IMPL
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -27,6 +27,8 @@ SRC = \ test/pkarr.cpp \ test/pkstn.c\ test/pkstn.cpp \ + test/pktmr.c\ + test/pktmr.cpp \ OBJ = $(SRC:%.c=.o) PPOBJ = $(SRC:%.cpp=.so) @@ -41,6 +43,7 @@ all: options .WAIT clean .WAIT \ pkev \ pkarr \ pkstn \ + pktmr \ test-pkmem-types test-pkmem-types-cpp \ test-pkmem test-pkmem-cpp \ test-pkmacros test-pkmacros-cpp \ @@ -48,6 +51,7 @@ all: options .WAIT clean .WAIT \ test-pkev test-pkev-cpp \ test-pkarr test-pkarr-cpp \ test-pkstn test-pkstn-cpp \ + test-pktmr test-pktmr-cpp \ options: @echo at-suite build options: @@ -85,6 +89,8 @@ pkarr: pkmem pkarr.gch pkarr.gchpp pkstn: pkstn.gch pkstn.gchpp +pktmr: pktmr.gch pktmr.gchpp + build: pkmacros build: pkmem-types build: pkmem @@ -92,6 +98,7 @@ build: pkstr build: pkev build: pkarr build: pkstn +build: pktmr echo "#ifndef PK_SINGLE_HEADER_FILE_H\n#define PK_SINGLE_HEADER_FILE_H" > pk.h cat pk.h.in \ pkmacros.h \ @@ -101,6 +108,7 @@ build: pkstn pkev.h \ pkarr.h \ pkstn.h \ + pktmr.h \ >> pk.h echo "#endif /* PK_SINGLE_HEADER_FILE_H */" >> pk.h sed -i -r \ @@ -153,6 +161,12 @@ test-pkstn: test/pkstn.o test-pkstn-cpp: test/pkstn.so $(CXX) -g -O0 -std=c++23 $(CPPFLAGS) -o test/$@ $^ $(LDFLAGS) +test-pktmr: test/pktmr.o + $(CC) -g -O0 -std=c2x $(CFLAGS) -o test/$@ $^ $(LDFLAGS) + +test-pktmr-cpp: test/pktmr.so + $(CXX) -g -O0 -std=c++23 $(CPPFLAGS) -o test/$@ $^ $(LDFLAGS) + test: pkmacros pkmem-types pkmem pkstr pkev pkarr test: test-pkmacros test-pkmacros-cpp test: test-pkmem-types test-pkmem-types-cpp @@ -161,6 +175,7 @@ test: test-pkstr test-pkstr-cpp test: test-pkev test-pkev-cpp test: test-pkarr test-pkarr-cpp test: test-pkstn test-pkstn-cpp +test: test-pktmr test-pktmr-cpp test: @echo "" ./test/test-pkmacros ; echo Result: $$? "\n" @@ -177,6 +192,8 @@ test: ./test/test-pkarr-cpp ; echo Result: $$? "\n" ./test/test-pkstn ; echo Result: $$? "\n" ./test/test-pkstn-cpp ; echo Result: $$? "\n" + ./test/test-pktmr ; echo Result: $$? "\n" + ./test/test-pktmr-cpp ; echo Result: $$? "\n" clean: rm -f *.plist *.gch *.gchpp *.o *.so test/*.o test/*.so test/test-* |
