forked from xdsopl/LDPC
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (18 loc) · 862 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CXXFLAGS = -std=c++11 -W -Wall -Ofast -fno-exceptions -fno-rtti
CXX = clang++ -stdlib=libc++ -march=native
#CXX = g++ -march=native
#CXX = armv7a-hardfloat-linux-gnueabi-g++ -static -mfpu=neon -march=armv7-a
#QEMU = qemu-arm
test: testbench
$(QEMU) ./testbench 10 T2 A1 QAM16 32
testbench: testbench.cc tables_handler.o itls_handler.o mods_handler.o *.hh Makefile
$(CXX) $(CXXFLAGS) testbench.cc tables_handler.o itls_handler.o mods_handler.o -o $@
tables_handler.o: tables_handler.cc *_tables.hh ldpc.hh Makefile
$(CXX) $(CXXFLAGS) tables_handler.cc -c -o $@
itls_handler.o: itls_handler.cc testbench.hh interleaver.hh Makefile
$(CXX) $(CXXFLAGS) itls_handler.cc -c -o $@
mods_handler.o: mods_handler.cc testbench.hh qam.hh psk.hh modulation.hh Makefile
$(CXX) $(CXXFLAGS) mods_handler.cc -c -o $@
.PHONY: clean all
clean:
rm -f testbench *.o