From 03be0764a1b1971455a3684579ae5fbccefeec38 Mon Sep 17 00:00:00 2001 From: mamborambo <36679886+mamborambo@users.noreply.github.com> Date: Thu, 22 Nov 2018 00:00:00 +0000 Subject: [PATCH] Clean Makefile Set c++ standard to c++11 --- src/Makefile | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/Makefile b/src/Makefile index 65a2c9c..c6132e0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,21 +1,16 @@ - -all: librpitx - -CFLAGS = -Wall -O3 -Wno-unused-variable -LDFLAGS = -lm -lrt -lpthread -CCP = g++ -CC = gcc +CFLAGS = -Wall -O3 -Wno-unused-variable +CXXFLAGS = -std=c++11 -Wall -O3 -Wno-unused-variable +LDFLAGS = -lm -lrt -lpthread +CCP = c++ +CC = cc librpitx: librpitx.h gpio.h gpio.cpp dma.h dma.cpp mailbox.c raspberry_pi_revision.c fmdmasync.h fmdmasync.cpp ngfmdmasync.h ngfmdmasync.cpp dsp.h dsp.cpp iqdmasync.h iqdmasync.cpp serialdmasync.h serialdmasync.cpp phasedmasync.h phasedmasync.cpp fskburst.h fskburst.cpp $(CC) $(CFLAGS) -c -o mailbox.o mailbox.c $(CC) $(CFLAGS) -c -o raspberry_pi_revision.o raspberry_pi_revision.c - $(CCP) $(CFLAGS) -c dsp.cpp iqdmasync.cpp ngfmdmasync.cpp fmdmasync.cpp dma.cpp gpio.cpp serialdmasync.cpp phasedmasync.cpp amdmasync.h amdmasync.cpp fskburst.cpp + $(CCP) $(CXXFLAGS) -c dsp.cpp iqdmasync.cpp ngfmdmasync.cpp fmdmasync.cpp dma.cpp gpio.cpp serialdmasync.cpp phasedmasync.cpp amdmasync.h amdmasync.cpp fskburst.cpp $(AR) rc librpitx.a dsp.o iqdmasync.o ngfmdmasync.o fmdmasync.o dma.o gpio.o mailbox.o raspberry_pi_revision.o serialdmasync.o phasedmasync.o amdmasync.o fskburst.o +install: librpitx clean: - - rm -f *.o *.a - -#install: all - + rm -f *.o *.a