compile.sh 1.08 KB
Newer Older
Sven Robertz's avatar
Sven Robertz committed
1
(cd ../..; make all)
Sven Robertz's avatar
Sven Robertz committed
2

3
mkdir -p gen
Sven Gestegård Robertz's avatar
Sven Gestegård Robertz committed
4
java -jar ../../compiler/labComm.jar --ver=2006 --java=gen --c=gen/simple.c --h=gen/simple.h  --python=gen/simple.py simple.lc 
Sven Robertz's avatar
Sven Robertz committed
5
6

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

Sven Gestegård Robertz's avatar
Sven Gestegård Robertz committed
8
9
10
11
12
13
14
15
16
# gcc -Wall -Werror -I. -I../../lib/c -L../../lib/c \
#    -o example_encoder example_encoder.c gen/simple.c \
#    -llabcomm -Tlabcomm.linkscript
#gcc -Wall -Werror -I . -I ../../lib/c -L../../lib/c \
#    -o example_decoder example_decoder.c gen/simple.c \
#    -llabcomm -Tlabcomm.linkscript

gcc -Wall -Werror -I.  -I../../lib/c/2006 -L../../lib/c \
    -o example_encoder06 example_encoder06.c gen/simple.c \
17
    -llabcomm -Tlabcomm.linkscript
Sven Gestegård Robertz's avatar
Sven Gestegård Robertz committed
18
19
gcc -Wall -Werror -I . -I ../../lib/c/2006 -L../../lib/c \
    -o example_decoder06 example_decoder06.c gen/simple.c \
20
    -llabcomm -Tlabcomm.linkscript
21
22
23
24

#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
25

Sven Robertz's avatar
Sven Robertz committed
26