#!/bin/bash

# Compile to .o file
gcc -o lcec_ax5200.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_ax5200.c
gcc -o lcec_class_enc.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_class_enc.c
gcc -o lcec_conf.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_conf.c
gcc -o lcec_conf_icmds.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_conf_icmds.c
gcc -o lcec_conf_util.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_conf_util.c
gcc -o lcec_deasda.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_deasda.c
gcc -o lcec_el1252.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el1252.c
gcc -o lcec_el1859.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el1859.c
gcc -o lcec_el1904.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el1904.c
gcc -o lcec_el1918_logic.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el1918_logic.c
gcc -o lcec_el1xxx.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el1xxx.c
gcc -o lcec_el2202.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el2202.c
gcc -o lcec_el2521.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el2521.c
gcc -o lcec_el2904.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el2904.c
gcc -o lcec_el2xxx.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el2xxx.c
gcc -o lcec_el31x2.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el31x2.c
gcc -o lcec_el31x4.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el31x4.c
gcc -o lcec_el3255.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el3255.c
gcc -o lcec_el40x1.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el40x1.c
gcc -o lcec_el40x2.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el40x2.c
gcc -o lcec_el40x8.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el40x8.c
gcc -o lcec_el41x2.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el41x2.c
gcc -o lcec_el41x4.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el41x4.c
gcc -o lcec_el5101.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el5101.c
gcc -o lcec_el5151.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el5151.c
gcc -o lcec_el5152.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el5152.c
gcc -o lcec_el6900.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el6900.c
gcc -o lcec_el7041_1000.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el7041_1000.c
gcc -o lcec_el70x1.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el70x1.c
gcc -o lcec_el7211.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el7211.c
gcc -o lcec_el7342.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el7342.c
gcc -o lcec_el7411.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el7411.c
gcc -o lcec_el95xx.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_el95xx.c
gcc -o lcec_em7004.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_em7004.c
gcc -o lcec_generic.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_generic.c
gcc -o lcec_main.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_main.c
gcc -o lcec_omrg5.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_omrg5.c
gcc -o lcec_ph3lm2rm.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_ph3lm2rm.c
gcc -o lcec_stmds5k.o -Os -g -I. -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DUSPACE -fno-fast-math -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/opt/hal-core/src/rtapi -I/opt/hal-core/src/hal -I/opt/etherlab/include/ -DSIM -fPIC -Os -c lcec_stmds5k.c


# Compile to .so file
gcc -shared -o lcec_ax5200.so lcec_ax5200.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_class_enc.so lcec_class_enc.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_conf.so lcec_conf.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_conf_icmds.so lcec_conf_icmds.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_conf_util.so lcec_conf_util.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_deasda.so lcec_deasda.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el1252.so lcec_el1252.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el1859.so lcec_el1859.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el1904.so lcec_el1904.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el1918_logic.so lcec_el1918_logic.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el1xxx.so lcec_el1xxx.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el2202.so lcec_el2202.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el2521.so lcec_el2521.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el2904.so lcec_el2904.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el2xxx.so lcec_el2xxx.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el31x2.so lcec_el31x2.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el31x4.so lcec_el31x4.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el3255.so lcec_el3255.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el40x1.so lcec_el40x1.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el40x2.so lcec_el40x2.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el40x8.so lcec_el40x8.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el41x2.so lcec_el41x2.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el41x4.so lcec_el41x4.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el5101.so lcec_el5101.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el5151.so lcec_el5151.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el5152.so lcec_el5152.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el6900.so lcec_el6900.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el7041_1000.so lcec_el7041_1000.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el70x1.so lcec_el70x1.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el7211.so lcec_el7211.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el7342.so lcec_el7342.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el7411.so lcec_el7411.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_el95xx.so lcec_el95xx.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_em7004.so lcec_em7004.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_generic.so lcec_generic.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_main.so lcec_main.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_omrg5.so lcec_omrg5.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_ph3lm2rm.so lcec_ph3lm2rm.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/
gcc -shared -o lcec_stmds5k.so lcec_stmds5k.o  -Wl,-rpath,/opt/hal-core/lib -L/opt/hal-core/lib -lhalcore -lrt -I/opt/hal-core/src/rtapi/


# Install to the rtlib
#cp -rf lcec.so /opt/hal-core/rtlib/