File: fix-fceux-net-server-Makefile-to-honor-standard-env-vars.patch

package info (click to toggle)
fceux 2.3.0%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,904 kB
  • sloc: cpp: 108,328; ansic: 10,341; sh: 3,386; python: 424; pascal: 391; perl: 82; makefile: 70; lisp: 60
file content (28 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Joseph Nahmias <jello@debian.org>
Date: Wed, 20 Jan 2021 21:12:32 -0500
Subject: fix fceux-net-server Makefile to honor standard env vars

---
 fceux-server/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fceux-server/Makefile b/fceux-server/Makefile
index 02d07f0..bdf7f18 100644
--- a/fceux-server/Makefile
+++ b/fceux-server/Makefile
@@ -1,12 +1,12 @@
-PREFIX  = 	/usr
+PREFIX  ?= 	/usr
 OUTFILE = 	fceux-net-server
 
-CC	=	g++
+CXX	?=	g++
 OBJS	=	server.o md5.o throttle.o
 
 
 all:		${OBJS}
-		${CC} -o ${OUTFILE} ${OBJS}
+		${CXX} ${CXXFLAGS} -o ${OUTFILE} ${OBJS} ${LDFLAGS}
 
 clean:
 		rm -f ${OUTFILE} ${OBJS}