all: heartbeat logging waypoints serial simulator servocontrol gui heartbeat: g++ heartbeat.cpp -o heartbeat -O3 -g -lpcap logging: g++ logging.cpp -o logging -O3 -g -lpcap waypoints: g++ waypoints.cpp -o waypoints -O3 -g -lpcap serial: g++ serial.cpp -o serial -O3 -g -lpcap serial_teds: g++ serial_teds.cpp -o serial_teds -O3 -g -lpcap simulator: g++ simulator.cpp -o simulator -O3 -g -lpcap servocontrol: g++ servocontrol.cpp -o servocontrol -O3 -g -lpcap gui: g++ gui.cpp -o gui -O3 -g -lpcap -lncurses -lgd -lpng -lz -ljpeg -lfreetype -lm run: ./logging > logging.log & ./heartbeat > heartbeat.log & ./waypoints 2004_rddf_aqua1.txt > waypoints.log & ./servocontrol > servocontrol.log & # ./simulator > simulator.log & ./serial /dev/ttyS0 19200 > serial_vector.log & # for the vector ./serial /dev/ttyUSB0 57600 do_steering > serial_teds.log & # for Teds board # ./serial /dev/ttyUSB0 4800 > /dev/null & # for the garmin # ./serial /dev/ttyS0 38400 > /dev/null & # for the KESEA board ./gui clean: rm -f *.o heartbeat logging waypoints serial simulator servocontrol gui test_steering: g++ test_steering.cpp -o test_steering -O3 -g -lncurses test_readserial: g++ test_readserial.cpp -o test_readserial -O3 -g test_sendudp: g++ test_sendudp.c -o test_sendudp -O3 -g test_pcap: g++ test_pcap.cpp -o test_pcap -O3 -g -lpcap test: g++ test.cpp -o test -O3 -g gpscar: main.o io.o logging.o g++ main.o io.o logging.o -lncurses -lpng -o gpscar -O3 -g main: main.cpp settings.h g++ -g -c main.cpp io.o: io.cpp io.h settings.h g++ -g -c io.cpp logging.o: logging.cpp settings.h g++ -g -c logging.cpp sensor_test: g++ sensor_test.cpp -g -lncurses -o sensor_test -O3 test_finddevice: g++ test_finddevice.cpp -g -o test_finddevice -O3