From 23d05decbb4807450141519deb8b953ea97da140 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Fri, 12 Jun 2020 10:02:05 +0200
Subject: [PATCH] Some changes suggested by ra1nb0w@github

---
 Makefile.mac | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile.mac b/Makefile.mac
index f6e96c8..972791a 100644
--- a/Makefile.mac
+++ b/Makefile.mac
@@ -32,8 +32,8 @@ MIDI_INCLUDE=MIDI
 # uncomment the line below for various debug facilities
 #DEBUG_OPTION=-D DEBUG
 
-CC=gcc
-LINK=gcc
+CC?=gcc
+LINK?=gcc
 
 ifeq ($(CONTROLLER2_V2_INCLUDE),CONTROLLER2_V2)
 CONTROLLER2_OPTIONS=-D CONTROLLER2_V2
@@ -145,7 +145,8 @@ GTKLIBS=`pkg-config --libs gtk+-3.0`
 AUDIO_OPTIONS=-DPORTAUDIO
 AUDIO_LIBS=-lportaudio -O3
 
-CFLAGS=	-g -Wno-deprecated-declarations
+CFLAGS?= -g -Wno-deprecated-declarations
+
 OPTIONS=$(MIDI_OPTIONS) $(PURESIGNAL_OPTIONS) $(REMOTE_OPTIONS) $(USBOZY_OPTIONS) \
 	$(SOAPYSDR_OPTIONS) $(LOCALCW_OPTIONS) \
 	$(STEMLAB_OPTIONS) \
@@ -407,6 +408,9 @@ clean:
 	-rm -f $(PROGRAM) hpsdrsim
 	-rm -rf $(PROGRAM).app
 
+install: $(PROGRAM)
+	cp $(PROGRAM) $(DESTDIR)/usr/local/bin
+
 #############################################################################
 #
 # hpsdrsim is a cool program that emulates an SDR board with UDP and TCP
-- 
2.45.2