Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide CXX variable in Makefile for other compiler support #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VERSION = 0.2.6

# USE_RPI_GPU_FFT = 1

CXX ?= g++
FLAGS = -Wall -O3 -ffast-math -DVERSION=$(VERSION)
LIBS = -lpthread -lm -ljpeg -lconfig -lrt

Expand All @@ -23,19 +24,19 @@ endif
all: gsm_scan ogn-rf r2fft_test

ogn-rf: Makefile ogn-rf.cc rtlsdr.h thread.h fft.h buffer.h image.h
g++ $(FLAGS) $(GPU_FLAGS) -o ogn-rf ogn-rf.cc $(GPU_SRC) $(LIBS) -lrtlsdr -lfftw3 -lfftw3f
$(CXX) $(FLAGS) $(GPU_FLAGS) -o ogn-rf ogn-rf.cc $(GPU_SRC) $(LIBS) -lrtlsdr -lfftw3 -lfftw3f
ifdef USE_RPI_GPU_FFT
sudo chown root ogn-rf
sudo chmod a+s ogn-rf
endif

gsm_scan: Makefile gsm_scan.cc rtlsdr.h fft.h buffer.h image.h
g++ $(FLAGS) $(GPU_FLAGS) -o gsm_scan gsm_scan.cc $(GPU_SRC) $(LIBS) -lrtlsdr -lfftw3 -lfftw3f
$(CXX) $(FLAGS) $(GPU_FLAGS) -o gsm_scan gsm_scan.cc $(GPU_SRC) $(LIBS) -lrtlsdr -lfftw3 -lfftw3f
ifdef USE_RPI_GPU_FFT
sudo chown root gsm_scan
sudo chmod a+s gsm_scan
endif

r2fft_test: Makefile r2fft_test.cc r2fft.h fft.h
g++ $(FLAGS) -o r2fft_test r2fft_test.cc -lm -lfftw3 -lfftw3f
$(CXX) $(FLAGS) -o r2fft_test r2fft_test.cc -lm -lfftw3 -lfftw3f