mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Adding instructions for chaning ARDUINO directory.
This commit is contained in:
parent
cf1f17886f
commit
28447e57a6
@ -26,29 +26,31 @@
|
|||||||
# 2. Below, modify the line containing "TARGET" to refer to the name of
|
# 2. Below, modify the line containing "TARGET" to refer to the name of
|
||||||
# of your program's file without an extension (e.g. TARGET = foo).
|
# of your program's file without an extension (e.g. TARGET = foo).
|
||||||
#
|
#
|
||||||
# 3. Modify the line containing "PORT" to refer to the filename
|
# 3. Modify the line containg "ARDUINO" to point the directory that
|
||||||
|
# contains the Arduino core (for normal Arduino installations, this
|
||||||
|
# is the lib/targets/arduino sub-directory).
|
||||||
|
#
|
||||||
|
# 4. Modify the line containing "PORT" to refer to the filename
|
||||||
# representing the USB or serial connection to your Arduino board
|
# representing the USB or serial connection to your Arduino board
|
||||||
# (e.g. PORT = /dev/tty.USB0). If the exact name of this file
|
# (e.g. PORT = /dev/tty.USB0). If the exact name of this file
|
||||||
# changes, you can use * as a wildcard (e.g. PORT = /dev/tty.USB*).
|
# changes, you can use * as a wildcard (e.g. PORT = /dev/tty.USB*).
|
||||||
#
|
#
|
||||||
# 4. At the command line, change to the directory containing your
|
# 5. At the command line, change to the directory containing your
|
||||||
# program's file and the makefile.
|
# program's file and the makefile.
|
||||||
#
|
#
|
||||||
# 5. Type "make" and press enter to compile/verify your program.
|
# 6. Type "make" and press enter to compile/verify your program.
|
||||||
#
|
#
|
||||||
# 6. Type "make upload", reset your Arduino board, and press enter to
|
# 7. Type "make upload", reset your Arduino board, and press enter to
|
||||||
# upload your program to the Arduino board.
|
# upload your program to the Arduino board.
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
PORT = /dev/tty.usbserial*
|
PORT = /dev/tty.usbserial*
|
||||||
TARGET = foo
|
TARGET = foo
|
||||||
ARDUINO = /Applications/arduino-0005
|
ARDUINO = /Applications/arduino-0005/lib/targets/arduino
|
||||||
ARDUINOSRC = $(ARDUINO)/lib/targets/arduino
|
SRC = $(ARDUINO)/buffer.c $(ARDUINO)/pins_arduino.c \
|
||||||
SRC = $(ARDUINOSRC)/buffer.c $(ARDUINOSRC)/pins_arduino.c \
|
$(ARDUINO)/Serial.c $(ARDUINO)/uart.c $(ARDUINO)/wiring.c
|
||||||
$(ARDUINOSRC)/Serial.c $(ARDUINOSRC)/uart.c $(ARDUINOSRC)/wiring.c
|
CXXSRC = $(TARGET).cpp $(ARDUINO)/HardwareSerial.cpp $(ARDUINO)/WRandom.cpp
|
||||||
CXXSRC = $(TARGET).cpp $(ARDUINOSRC)/HardwareSerial.cpp \
|
|
||||||
$(ARDUINOSRC)/WRandom.cpp
|
|
||||||
MCU = atmega8
|
MCU = atmega8
|
||||||
F_CPU = 16000000
|
F_CPU = 16000000
|
||||||
FORMAT = ihex
|
FORMAT = ihex
|
||||||
@ -69,8 +71,8 @@ CDEFS = -DF_CPU=$(F_CPU)
|
|||||||
CXXDEFS = -DF_CPU=$(F_CPU)
|
CXXDEFS = -DF_CPU=$(F_CPU)
|
||||||
|
|
||||||
# Place -I options here
|
# Place -I options here
|
||||||
CINCS = -I$(ARDUINOSRC)
|
CINCS = -I$(ARDUINO)
|
||||||
CXXINCS = -I$(ARDUINOSRC)
|
CXXINCS = -I$(ARDUINO)
|
||||||
|
|
||||||
# Compiler flag to set the C Standard level.
|
# Compiler flag to set the C Standard level.
|
||||||
# c89 - "ANSI" C
|
# c89 - "ANSI" C
|
||||||
|
Loading…
x
Reference in New Issue
Block a user