]> git.earman.xyz Git - sensor-watch.git/commitdiff
working makefile for folks to test with
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 15 May 2025 13:08:06 +0000 (09:08 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 15 May 2025 13:09:52 +0000 (09:09 -0400)
Makefile

index c66fa0ca6842b35fff8c5b3c13d8ac42f76c777c..38f89736a784605cc544d81723c358eda564f8b5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,37 @@
 # Keep this first line.
 GOSSAMER_PATH=gossamer
 
-# Which board are we building for?
+# Which board are we building for? Commented out to force a choice when building.
 # Options are:
 # - sensorwatch_pro
 # - sensorwatch_green
 # - sensorwatch_red (also known as Sensor Watch Lite)
-BOARD=sensorwatch_pro
+BOARD=sensorwatch_pro
 
 # Sensor Watch will detect the display, unless you are debugging over USB.
 # If you need to force a specific display, set this to the type you want, CLASSIC or CUSTOM
-FORCE_DISPLAY_TYPE=CUSTOM
+FORCE_DISPLAY_TYPE=CLASSIC
 
 # Which sensor board?
-SENSOR=MOTION
+SENSOR=NONE
+
+# End of user configurable options.
 
 # Support USB features?
 TINYUSB_CDC=1
 
-# Leave this line here.
+# Now we're all set to include gossamer's make rules.
 include $(GOSSAMER_PATH)/make.mk
 
+define n
+
+
+endef
+
+ifndef BOARD
+$(error Build failed: BOARD not defined. Use one of the four options below, depending on your hardware:$n$n    make BOARD=sensorwatch_red$n    make BOARD=sensorwatch_green$n    make BOARD=sensorwatch_blue$n    make BOARD=sensorwatch_pro$n$n)
+endif
+
 ifeq ($(SENSOR), MOTION)
   DEFINES += -DHAS_ACCELEROMETER
 endif