1,编译milltask
>cd src/emc/task
>g++ -c signalhandler.cc -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7
>g++ -c emctaskmain.cc -DRTAPI -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7
>g++ -o milltask emcmotglb.o emctask.o emccanon.o emctaskmain.o usrmotintf.o emcmotutil.o taskintf.o dbuf.o stashf.o tool_parse.o taskmodule.o taskclass.o backtrace.o ../../../lib/librs274.so.0 ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcncini.so.0 ../../../lib/libposemath.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/libpyplugin.so.0 -L/home/bruce/linuxcnc-dev/lib -Wl,-rpath,/home/bruce/linuxcnc-dev/lib -lboost_python -lpython2.7 -L/usr/lib/x86_64-linux-gnu
2,编译linuxcncsvr(守护进程)
>g++ -c emcsvr.cc -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7
>g++ -o linuxcncsvr emcsvr.o ../../../lib/librs274.so.0 ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcncini.so.0 ../../../lib/libposemath.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/libpyplugin.so.0 -L/home/bruce/linuxcnc-dev/lib -Wl,-rpath,/home/bruce/linuxcnc-dev/lib -lboost_python -lpython2.7 -L/usr/lib/x86_64-linux-gnu
3,编译ioControl (bin/io)
>cd src/emc/iotask
>g++ -o ioControl ioControl.cc -DRTAPI ../rs274ngc/tool_parse.cc -I../../../include -I../../../src/emc/rs274ngc -Wl,--rpath=../../../lib ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/liblinuxcncini.so.0
4,motion-logger (bin/motion-logger)
>cd src/emc/motion-logger
>gcc -o motion-logger motion-logger.c -DRTAPI -I../../../include -I../../../src/emc/motion/ -Wl,-rpath=../../../lib ../../../lib/libnml.so.0 ../../../lib/liblinuxcnchal.so.0
5,schedrmt (bin/schedrmt)
>cd src/emc/usr_intf
>g++ -c emcsched.cc -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6
>g++ -c shcom.cc -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6
>g++ -c schedrmt.cc -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6
> g++ -o schedrmt schedrmt.o emcsched.o shcom.o ../../../lib/librs274.so.0 ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcncini.so.0 ../../../lib/libposemath.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/libpyplugin.so.0 -L/home/bruce/linuxcnc-dev/lib -Wl,-rpath,/home/bruce/linuxcnc-dev/lib -lboost_python -lpython2.7 -L/usr/lib/x86_64-linux-gnu -lXaw7 -lXtst -lX11 -lXt -ltcl8.6 -ltclstub8.6 -lpthread
6,halui (bin/halui)
>g++ -o halui halui.cc -DRTAPI -I../../../include -I../../../src/emc/rs274ngc -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6 ../../../lib/liblinuxcnc.a ../../../lib/liblinuxcncini.so.0 ../../../lib/libnml.so.0 ../../../lib/liblinuxcnchal.so.0