From d48fa76f353b82b7f223859786bc07a2fd5f4a14 Mon Sep 17 00:00:00 2001
From: Mike Collins <mdcolli@evoforge.org>
Date: Sun, 27 Jun 2021 19:02:38 -0400
Subject: [PATCH] Updated Makefile for testing and choosing specific compilers.
 More work to do on makefile in the future.

---
 RIGAL/rigsc.446/src/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/RIGAL/rigsc.446/src/Makefile b/RIGAL/rigsc.446/src/Makefile
index 70d3813..cb1a5df 100644
--- a/RIGAL/rigsc.446/src/Makefile
+++ b/RIGAL/rigsc.446/src/Makefile
@@ -4,10 +4,16 @@
 #
 
 # C compiler to use (Compiler path can be changed by the user)
+#COMPILER = clang
+#COMPILER = gcc 
+COMPILER = cc
 #CCFLAGS = -g -DLE -m32 -I/usr/include -I../include 
+#CCFLAGS =  -m32 -Wall -Wextra -Wdouble-promotion -Wnonnull -Wnull-dereference -Winit-self -Wimplicit-fallthrough=4 -Wunused-function -Wunused-label -Wunused -Wuninitialized -Wstringop-overflow -Walloca -I/usr/include -I../include
+#CCFLAGS =  -m32 -Wall -Wextra -Wdouble-promotion -Wnonnull -Wnull-dereference -Winit-self -Wimplicit-fallthrough=4 -Wunused-function -Wunused-label -Wunused -Wuninitialized -Wstringop-overflow -Walloca -I/usr/include -I../include
+#CCFLAGS =   -fPIC -I/usr/include -I../include
 CCFLAGS =  -m32 -I/usr/include -I../include
 #PCA =  cc $(CCFLAGS) -D STATIC_CCFLAGS='"$(CCFLAGS)"' -c  xsun=1 -I../include/ -I/usr/include
-PCA =  cc $(CCFLAGS) -D STATIC_CCFLAGS='"$(CCFLAGS)"'  -c 
+PCA =  $(COMPILER)  $(CCFLAGS) -D STATIC_CCFLAGS='"$(CCFLAGS)"'  -c 
 # math lib for sin, cos, sqrt etc.
 LIBS = -lm
 
-- 
GitLab