-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (37 loc) · 1.24 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
all: genMatrix genLdpcDecoder rsenc bfenc raw2bin ldpcenc scrambler ber noisesim hamenc PRNGenc asymenc
clean:
rm rsenc rsdec bfenc bfdec raw2bin bin2raw ldpcenc ldpcdec genMatrix scrambler descramble ber noisesim hamenc hamdec PRNGenc PRNGdec asymenc asymdec genLdpcDecoder
CFLAGS= -Wall -O3 -march=native
#CFLAGS= -Wall -O0 -g -march=native
genMatrix: genMatrix.cpp
g++ $(CFLAGS) -o genMatrix genMatrix.cpp
rsenc: rsenc.c reedsolomon.c
gcc $(CFLAGS) -o rsenc rsenc.c reedsolomon.c
ln -s rsenc rsdec
bfenc: bfenc.c
g++ $(CFLAGS) -ansi -o bfenc bfenc.c
ln -s bfenc bfdec
PRNGenc: PRNGenc.c
g++ $(CFLAGS) -o PRNGenc PRNGenc.c
ln -s PRNGenc PRNGdec
raw2bin: raw2bin.c
gcc $(CFLAGS) -o raw2bin raw2bin.c
ln -s raw2bin bin2raw
genLdpcDecode: genLdpcDecoder.cpp
g++ $(CFLAGS) -o genLdpcDecoder genLdpcDecoder.cpp
ldpcenc: ldpcenc.cpp
g++ $(CFLAGS) -o ldpcenc ldpcenc.cpp
ln -s ldpcenc ldpcdec
scrambler: scrambler.c
g++ $(CFLAGS) -o scrambler scrambler.c
ln -s scrambler descramble
ber: ber.c
gcc $(CFLAGS) -o ber ber.c
noisesim: noisesim.c
gcc $(CFLAGS) -lm -o noisesim noisesim.c
hamenc: hamenc.cpp
g++ $(CFLAGS) -o hamenc hamenc.cpp
ln -s hamenc hamdec
asymenc: asymcode3.cpp
g++ $(CFLAGS) -o asymenc asymcode3.cpp
ln -s asymenc asymdec