diff --git a/Makefile b/Makefile index 2d8de071..aa7dec76 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,10 @@ OBJECTS = \ all: MMDVMHost RemoteCommand MMDVMHost: GitVersion.h $(OBJECTS) - $(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost + $(CXX) $(OBJECTS) $(LDFLAGS) $(LIBS) -o MMDVMHost RemoteCommand: Log.o RemoteCommand.o UDPSocket.o - $(CXX) Log.o RemoteCommand.o UDPSocket.o $(CFLAGS) $(LIBS) -o RemoteCommand + $(CXX) Log.o RemoteCommand.o UDPSocket.o $(LDFLAGS) $(LIBS) -o RemoteCommand %.o: %.cpp $(CXX) $(CFLAGS) -c -o $@ $<