From 22a2857e326bb38d2c78a8f838ad09e2a533d55c Mon Sep 17 00:00:00 2001
From: Fred Wright <fw@fwright.net>
Date: Thu, 17 Oct 2024 15:46:33 -0700
Subject: [PATCH] Makefile: Add targets for object files.

This facilitates building object files and libraries with separate
make commands, using different options.  This is just for debugging.

TESTED:
New targets build as expected.
---
 Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Makefile b/Makefile
index 23db8c2..6802775 100644
--- a/Makefile
+++ b/Makefile
@@ -281,6 +281,14 @@ $(SLIBOBJS): %$(SLIBOBJEXT): %.c $(ALLHEADERS)
 $(ADDOBJS): %$(SLIBOBJEXT): %.c $(ALLHEADERS)
 	$(CC) -c -I$(SRCINCDIR) $(ALLCFLAGS) $(SLIBCFLAGS) $< -o $@
 
+dlibobjs: $(DLIBOBJS) $(MULTIDLIBOBJS)
+
+syslibobjs: $(DLIBOBJS) $(MULTIDLIBOBJS) $(ADDOBJS)
+
+slibobjs: $(SLIBOBJS) $(MULTISLIBOBJS)
+
+allobjs: dlibobjs slibobjs syslibobjs
+
 $(TESTOBJS_C): %.o: %.c $(ALLHEADERS)
 	$(CC) -c -std=c99 -I$(SRCINCDIR) $(ALLCFLAGS) $< -o $@
 
@@ -443,3 +451,4 @@ clean: $(MANRUNPREFIX)clean test_clean
 .PHONY: $(MANRUNPREFIX)clean test_clean xtest_clean
 .PHONY: install install-headers install-lib install-dlib install-slib
 .PHONY: tiger-bins install-tiger
+.PHONY: allobjs dlibobjs slibobjs syslibobjs
-- 
GitLab