#############################################################################
# Makefile for building: grbl5axis
# Project: grbl5axis.pro
#############################################################################
MAKEFILE = Makefile
CC = arm-linux-gnueabihf-gcc
CXX = arm-linux-gnueabihf-g++
DEFINES = -DARM
CFLAGS = -pipe -I/zzzzzzzzzzzzzzzzz/usr/include/dbus-1.0 -I/zzzzzzzzzzzzzzzzz/usr/lib/dbus-1.0/include -I/zzzzzzzzzzzzzzzzz/usr/include/glib-2.0 -I/zzzzzzzzzzzzzzzzz/usr/lib/glib-2.0/include -g -Wall -W -fPIC $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -fPIC $(DEFINES)
INCPATH = -I./grbl
DEL_FILE = rm -f
LINK = arm-linux-gnueabihf-g++
LFLAGS = --sysroot=/zzzzzzzzzzzzzzzzz/usr/arm-buildroot-linux-gnueabihf/sysroot -L/zzzzzzzzzzzzzzzzz/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -L/zzzzzzzzzzzzzzzzz/usr/arm-buildroot-linux-gnueabihf/sysroot/lib
LIBS = -lpthread -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
AR = arm-linux-gnueabihf-ar cqs
SED = sed
STRIP = arm-linux-gnueabihf-strip
OBJECTS_DIR = ./
SOURCES = grbl/coolant_control.c \
grbl/eeprom.c \
grbl/gcode.c \
grbl/jog.c \
grbl/limits.c \
grbl/main.c \
grbl/motion_control.c \
grbl/nuts_bolts.c \
grbl/planner.c \
grbl/print.c \
grbl/probe.c \
grbl/protocol.c \
grbl/report.c \
grbl/serial.c \
grbl/settings.c \
grbl/sleep.c \
grbl/spindle_control.c \
grbl/stepper.c \
grbl/system.c \
grbl/xxxxxxxxxxx.c \
grbl/dbuscomm.c \
grbl/shmfifo.c
OBJECTS = coolant_control.o \
eeprom.o \
gcode.o \
jog.o \
limits.o \
main.o \
motion_control.o \
nuts_bolts.o \
planner.o \
print.o \
probe.o \
protocol.o \
report.o \
serial.o \
settings.o \
sleep.o \
spindle_control.o \
stepper.o \
system.o \
xxxxxxxxxxx.o \
dbuscomm.o \
shmfifo.o
TARGET = grbl5axis
first: all
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
all: Makefile $(TARGET)
dist: distdir FORCE
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
clean: compiler_clean
-$(DEL_FILE) $(OBJECTS)
distclean: clean
-$(DEL_FILE) $(TARGET)
####### Sub-libraries
####### Compile
compiler_clean:
coolant_control.o: grbl/coolant_control.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o coolant_control.o grbl/coolant_control.c
eeprom.o: grbl/eeprom.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o eeprom.o grbl/eeprom.c
gcode.o: grbl/gcode.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o gcode.o grbl/gcode.c
jog.o: grbl/jog.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o jog.o grbl/jog.c
limits.o: grbl/limits.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o limits.o grbl/limits.c
main.o: grbl/main.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o main.o grbl/main.c
motion_control.o: grbl/motion_control.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o motion_control.o grbl/motion_control.c
nuts_bolts.o: grbl/nuts_bolts.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o nuts_bolts.o grbl/nuts_bolts.c
planner.o: grbl/planner.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o planner.o grbl/planner.c
print.o: grbl/print.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o print.o grbl/print.c
probe.o: grbl/probe.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o probe.o grbl/probe.c
protocol.o: grbl/protocol.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o protocol.o grbl/protocol.c
report.o: grbl/report.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o report.o grbl/report.c
serial.o: grbl/serial.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o serial.o grbl/serial.c
settings.o: grbl/settings.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o settings.o grbl/settings.c
sleep.o: grbl/sleep.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o sleep.o grbl/sleep.c
spindle_control.o: grbl/spindle_control.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o spindle_control.o grbl/spindle_control.c
stepper.o: grbl/stepper.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o stepper.o grbl/stepper.c
system.o: grbl/system.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o system.o grbl/system.c
xxxxxxxxxxx.o: grbl/xxxxxxxxxxx.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o xxxxxxxxxxx.o grbl/xxxxxxxxxxx.c
dbuscomm.o: grbl/dbuscomm.c grbl/grbl.h \
grbl/config.h \
grbl/nuts_bolts.h \
grbl/settings.h \
grbl/system.h \
grbl/defaults.h \
grbl/cpu_map.h \
grbl/planner.h \
grbl/coolant_control.h \
grbl/eeprom.h \
grbl/gcode.h \
grbl/limits.h \
grbl/motion_control.h \
grbl/print.h \
grbl/probe.h \
grbl/protocol.h \
grbl/report.h \
grbl/serial.h \
grbl/spindle_control.h \
grbl/stepper.h \
grbl/jog.h \
grbl/sleep.h \
grbl/xxxxxxxxxxx.h \
grbl/sharedata.h \
grbl/dbuscomm.h \
grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o dbuscomm.o grbl/dbuscomm.c
shmfifo.o: grbl/shmfifo.c grbl/shmfifo.h
$(CC) -c $(CFLAGS) $(INCPATH) -o shmfifo.o grbl/shmfifo.c
check: first
benchmark: first