#############################################################################
# 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 \
g