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:
parent
ab0a683aef
commit
6286ba7505
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue