Skip to content

Commit

Permalink
Merge branch 'improvements/build-system/makefile' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
unforgiven512 committed Jul 2, 2024
2 parents 4b154c6 + d69cdb4 commit 5b01e16
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

# If you have the resampler library installed, add -DHAS_SRC to the CFLAGS line, and -lsamplerate to the LIBS line.

CC = cc
CXX = c++
CFLAGS = -g -O3 -Wall -std=c++0x -pthread -DHAVE_LOG_H -I/usr/local/include
LIBS = -lpthread -lutil
LDFLAGS = -g -L/usr/local/lib

CC ?= cc
CXX ?= c++

Expand Down Expand Up @@ -147,10 +141,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 $@ $<
Expand Down

0 comments on commit 5b01e16

Please sign in to comment.