Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.directory
*.kate-swp
Thumbs.db
build
Makefile
18 changes: 18 additions & 0 deletions Makefile.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile

# Reference for variables: https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md#arduino-ide-variables

# Installation dirs - EDIT!
ARDUINO_DIR = EDIT-ME
ARDMK_DIR = EDIT-ME

# Compilation opts
BOARD_TAG = pro
BOARD_SUB = 8MHzatmega328
MONITOR_PORT = /dev/ttyUSB0
ARCHITECTURE = avr
ARDUINO_LIBS = Time U8glib SPI SoftwareSerial Wire jeelib_master
OBJDIR = ../build/build-$(BOARD_TAG)

include $(ARDMK_DIR)/Arduino.mk

13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ so expect drastic changes without warning!
See official project page for more info and updates on development:
https://www.coconauts.net/projects/watchduino2/


## Compile without the Arduino IDE

Watchduino is making use of [https://github.com/marbru/Arduino-Makefile], so you can compile and upload it from the command line.

Copy `Makefile.sample` into `Makefile`, and edit the paths to your Arduino and Arduino Makefile installation dirs.

Then you can do:

./make.sh # To compile
sudo ./make.sh upload # To upload to your Arduino


## Tutorials

- [How to make](docs/how_to_make.md), how to build your own WatchDuino.
10 changes: 10 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

SRC_DIR=watch

cp Makefile $SRC_DIR
cd $SRC_DIR
make $1
rm Makefile
cd ..