honor standard build environment variables (#317)

allow PREFIX to be overridden
use CXX for compiling C++ code, overriddable
include CXXFLAGS & LDFLAGS when compiling linking
This commit is contained in:
jnahmias 2021-02-01 05:44:10 -05:00 committed by GitHub
parent ab0a683aef
commit 6286ba7505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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}