compile.sh 1.1 KB
Newer Older
1
#(cd ../../lib/c; make -e LABCOMM_NO_EXPERIMENTAL=true)
2
(cd ../../compiler ; ant jar)
Sven Robertz's avatar
Sven Robertz committed
3

4
mkdir -p gen
5
java -jar ../../compiler/labComm.jar --java=gen --c=gen/simple.c --h=gen/simple.h  --python=gen/simple.py simple.lc 
Sven Robertz's avatar
Sven Robertz committed
6
7

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

9
10
11
12
13
14
15
16
17
18
19
20
21
22
gcc -Wall -Werror -I . -I ../../lib/c \
    -DLABCOMM_FD_OMIT_VERSION \
    -DLABCOMM_ENCODER_LINEAR_SEARCH \
     gen/simple.c  ../../lib/c/labcomm.c \
    ../../lib/c/labcomm_dynamic_buffer_writer.c \
    ../../lib/c/labcomm_fd_writer.c \
    -o example_encoder example_encoder.c 
gcc -Wall -Werror -I . -I ../../lib/c \
    -DLABCOMM_FD_OMIT_VERSION \
    -DLABCOMM_ENCODER_LINEAR_SEARCH \
     gen/simple.c  ../../lib/c/labcomm.c \
    ../../lib/c/labcomm_dynamic_buffer_writer.c \
    ../../lib/c/labcomm_fd_reader.c \
    -o example_decoder example_decoder.c
23
24
25
26

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

Sven Robertz's avatar
Sven Robertz committed
28