From 3396a8813f93440dd01af9c654eb3132132934e9 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sun, 1 Jun 2008 20:50:29 +0000
Subject: [PATCH]     * Add some compiler flexibility to two obscure SAM
 makefiles

---
 apps/sam/c/Makefile                   | 10 +++++-----
 apps/sam/c/examples/i2p-ping/Makefile | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/apps/sam/c/Makefile b/apps/sam/c/Makefile
index 72fa21cd23..4488a63f6f 100644
--- a/apps/sam/c/Makefile
+++ b/apps/sam/c/Makefile
@@ -27,15 +27,15 @@ lib/libsam.so: obj/libsam.la
 
 obj/libsam-static.la: $(OBJS)
 	$(STATUS) library '(static)'
-	libtool --mode=link gcc -static $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG)
+	libtool --mode=link $(CC) -static $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG)
 
 obj/libsam.la: $(OBJS)
 	$(STATUS) library '(shared)'
-	libtool --mode=link gcc -rpath  $(DESTDIR) $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG)
+	libtool --mode=link $(CC) -rpath  $(DESTDIR) $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG)
 
 obj/%.lo: src/%.c
 	$(STATUS) compile $*
-	libtool --mode=compile gcc $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG)
+	libtool --mode=compile $(CC) $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG)
 
 $(OBJS):|obj
 obj:
@@ -44,7 +44,7 @@ obj:
 
 .deps/%.d: src/%.c
 	$(STATUS) deps $*
-	gcc -Iinc/ -MM -MT obj/$*.o $< -o $@
+	$(CC) -Iinc/ -MM -MT obj/$*.o $< -o $@
 
 -include $(DEPS)
 
@@ -61,4 +61,4 @@ clean:
 	libtool --mode=clean rm -f obj/*.l* lib/*.l* lib/*.so* lib/*.a >>$(LIBTOOL_LOG)
 	rm -Rf .deps libtool.log
 
-.PHONY: all cleanlog clean
\ No newline at end of file
+.PHONY: all cleanlog clean
diff --git a/apps/sam/c/examples/i2p-ping/Makefile b/apps/sam/c/examples/i2p-ping/Makefile
index 9f5c27b5e2..330e3340b8 100644
--- a/apps/sam/c/examples/i2p-ping/Makefile
+++ b/apps/sam/c/examples/i2p-ping/Makefile
@@ -25,14 +25,14 @@ cleanlog:
 
 i2p-ping: $(OBJS)
 	$(STATUS) link
-	libtool --mode=link gcc $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG)
+	libtool --mode=link $(CC) $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG)
 
 %.lo: %.c
 	$(STATUS) compile $*
-	libtool --mode=compile gcc $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG)
+	libtool --mode=compile $(CC) $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG)
 .deps/%.d: src/%.c
 	$(STATUS) deps $*
-	gcc -Iinc/ -MM -MT obj/$*.o $^ -o $@
+	$(CC) -Iinc/ -MM -MT obj/$*.o $^ -o $@
 
 clean:
 	$(STATUS) clean
@@ -44,11 +44,11 @@ obj:
 	$(STATUS) MKDIR $@
 	mkdir -p $@
 
--include $(DEPS)
+# -include $(DEPS)
 $(DEPS):|.deps
 .deps:
 	$(STATUS) MKDIR $@
 	mkdir -p $@
 
 
-.PHONY: all cleanlog clean
\ No newline at end of file
+.PHONY: all cleanlog clean
-- 
GitLab