The following is an example Makefile.in that could be added to the Gadgeteer build system.
Example A.3. Makefile.in for Gadgeteer Build System
1 default: all # Include common definitions. include @topdir@/make.defs.mk 5 DRIVER_NAME= ButtonDevice srcdir= @srcdir@ top_srcdir= @top_srcdir@ 10 INSTALL= @INSTALL@ INSTALL_FILES= SUBOBJDIR= $(DRIVER_NAME) C_AFTERBUILD= driver-dso 15 SRCS= ButtonDevice.cpp \ DriverStandalone.cpp include $(MKPATH)/dpp.obj.mk include @topdir@/driver.defs.mk 20 # ----------------------------------------------------------------------------- # Include dependencies generated automatically. # ----------------------------------------------------------------------------- ifndef DO_CLEANDEPEND 25 ifndef DO_BEFOREBUILD -include $(DEPEND_FILES) endif endif
The following is a makefile for a driver that is built outside of the Gadgeteer source tree.