Clean Makefile
Set c++ standard to c++11
This commit is contained in:
parent
762af0f591
commit
03be0764a1
1 changed files with 8 additions and 13 deletions
21
src/Makefile
21
src/Makefile
|
@ -1,21 +1,16 @@
|
||||||
|
CFLAGS = -Wall -O3 -Wno-unused-variable
|
||||||
all: librpitx
|
CXXFLAGS = -std=c++11 -Wall -O3 -Wno-unused-variable
|
||||||
|
LDFLAGS = -lm -lrt -lpthread
|
||||||
CFLAGS = -Wall -O3 -Wno-unused-variable
|
CCP = c++
|
||||||
LDFLAGS = -lm -lrt -lpthread
|
CC = cc
|
||||||
CCP = g++
|
|
||||||
CC = gcc
|
|
||||||
|
|
||||||
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
|
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 mailbox.o mailbox.c
|
||||||
$(CC) $(CFLAGS) -c -o raspberry_pi_revision.o raspberry_pi_revision.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
|
$(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:
|
clean:
|
||||||
|
rm -f *.o *.a
|
||||||
rm -f *.o *.a
|
|
||||||
|
|
||||||
#install: all
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue