summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-06-02 12:55:39 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-06-03 13:55:33 -0400
commita9a0920f431c76f31157edd42c6d055b673ed12f (patch)
tree8884ae8cd6de5d896dfd54efe1539a33e6ce2b6e /Makefile
parent467dce9c254737e8437735471af887a544ef8d10 (diff)
pkfuncinstr.h: created, first-pass
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b0a59c2..4e00c62 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ SRC = \
pkuuid.h \
pkbktarr.h \
pktmpln.h \
+ pkfuncinstr.h \
test/pkmacros.c \
test/pkmacros.cpp \
test/pkmem-types.c \
@@ -54,6 +55,7 @@ all: options .WAIT clean .WAIT \
pkuuid \
pkbktarr \
pktmpln \
+ pkfuncinstr \
test/test-pkmem-types test/test-pkmem-types-cpp \
test/test-pkmem test/test-pkmem-cpp \
test/test-pkmacros test/test-pkmacros-cpp \
@@ -74,9 +76,9 @@ options:
@echo "CXX = $(CXX)"
%.gch: %.h
- $(CC) -std=c2x $(CFLAGS) -c $< -o $@
+ $(CC) -std=c2x $(CFLAGS) $(OPTLEVEL) -c $< -o $@
%.gchpp: %.h
- $(CXX) -std=c++23 $(CXXFLAGS) -x c++-header -c $< -o $@
+ $(CXX) -std=c++23 $(CXXFLAGS) $(OPTLEVEL) -x c++-header -c $< -o $@
%.o: %.c
$(CC) -std=c2x $(CFLAGS) -g $(OPTLEVEL) -c $< -o $@
%.so: %.cpp
@@ -109,6 +111,8 @@ pkbktarr: pkbktarr.gch pkbktarr.gchpp
pktmpln: pktmpln.gch pktmpln.gchpp
+pkfuncinstr: pkfuncinstr.gch pkfuncinstr.gchpp
+
build: pkmacros
build: pkmem-types
build: pkmem
@@ -119,9 +123,11 @@ build: pkstn
build: pktmr
build: pkuuid
build: pkbktarr
+build: pkfuncinstr
echo "#ifndef PK_SINGLE_HEADER_FILE_H\n#define PK_SINGLE_HEADER_FILE_H" > pk.h
cat pk.h.in \
pkmacros.h \
+ pktmpln.h \
pkmem-types.h \
pkmem.h \
pkstr.h \
@@ -131,7 +137,7 @@ build: pkbktarr
pktmr.h \
pkuuid.h \
pkbktarr.h \
- pktmpln.h \
+ pkfuncinstr.h \
>> pk.h
echo "#endif /* PK_SINGLE_HEADER_FILE_H */" >> pk.h
sed -i -r \
@@ -202,6 +208,7 @@ test/test-pkbktarr: test/pkbktarr.o
test/test-pkbktarr-cpp: test/pkbktarr.so
$(CXX) -g $(OPTLEVEL) -std=c++23 $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+test: options
test: pkmacros test/test-pkmacros test/test-pkmacros-cpp
test: pkmem-types test/test-pkmem-types test/test-pkmem-types-cpp
test: pkmem test/test-pkmem test/test-pkmem-cpp
@@ -213,6 +220,7 @@ test: pktmr test/test-pktmr test/test-pktmr-cpp
test: pkuuid test/test-pkuuid test/test-pkuuid-cpp
test: pkbktarr test/test-pkbktarr test/test-pkbktarr-cpp
test: pktmpln
+test: pkfuncinstr
test:
@echo ""
./test/test-pkmacros ; echo Result: $$? "\n"