compile.sh 649 Bytes
Newer Older
Sven Robertz's avatar
Sven Robertz committed
1
2
(cd ../../lib/c; make)

Sven Robertz's avatar
Sven Robertz committed
3
java -jar ../../labComm.jar --java=gen --c=gen/simple.c --h=gen/simple.h  simple.lc 
Sven Robertz's avatar
Sven Robertz committed
4
5

javac -cp ../../lib/java:. gen/*.java Encoder.java Decoder.java
Sven Robertz's avatar
Sven Robertz committed
6

7
8
9
10
11
12
gcc -o example_encoder -L ../../lib/c -I . -I ../../lib/c example_encoder.c gen/simple.c -llabcomm
gcc -o example_decoder -L ../../lib/c -I . -I ../../lib/c example_decoder.c gen/simple.c -llabcomm

#gcc -o example_encoder -I . -I ../../lib/c example_encoder.c gen/simple.c ../../lib/c/labcomm.c ../../lib/c/labcomm_fd_reader_writer.c

#gcc -o example_decoder -I . -I ../../lib/c example_decoder.c gen/simple.c ../../lib/c/labcomm.c ../../lib/c/labcomm_fd_reader_writer.c
Sven Robertz's avatar
Sven Robertz committed
13

Sven Robertz's avatar
Sven Robertz committed
14