Skip to content

Commit

Permalink
Modified for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jun 8, 2011
1 parent f54c0ac commit 11c351f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions examples/meshping/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ PROJECT_DIR = . ;
PROJECT_LIBS = SPI RF24 RF24Network ;

OUT_DIR = ojam ;
ARDUINO_VERSION = 22 ;
F_CPU = 16000000 ;

# Host-specific overrides for locations
if $(OS) = MACOSX
{
ARDUINO_VERSION = 22 ;
OLD_DIR = /opt/arduino-0021 ;
AVR_TOOLS_PATH = $(OLD_DIR)/hardware/tools/avr/bin ;
AVRDUDECONFIG_PATH = $(OLD_DIR)/hardware/tools/avr/etc ;
ARDUINO_DIR = /opt/Arduino ;
ARDUINO_AVR = /usr/lib/avr/include ;
}

# Where is everything?
AVR_TOOLS_PATH = /usr/bin ;
ARDUINO_DIR = /opt/arduino-00$(ARDUINO_VERSION) ;
ARDUINO_VERSION ?= 22 ;
AVR_TOOLS_PATH ?= /usr/bin ;
ARDUINO_DIR ?= /opt/arduino-00$(ARDUINO_VERSION) ;
ARDUINO_AVR ?= $(ARDUINO_DIR)/hardware/tools/avr/avr/include/avr ;
ARDUINO_CORE = $(ARDUINO_DIR)/hardware/arduino/cores/arduino ;
ARDUINO_AVR = /usr/lib/avr/include ;
ARDUINO_LIB = $(ARDUINO_DIR)/libraries ;
SKETCH_LIB = $(HOME)/Source/Arduino/libraries ;
AVR_CC = $(AVR_TOOLS_PATH)/avr-gcc ;
Expand All @@ -25,7 +36,7 @@ CXXFLAGS = $(CFLAGS) $(CXXTUNING) ;
LDFLAGS = -Os -lm -Wl,--gc-sections -mmcu=atmega328p ;

# Search everywhere for headers
HDRS = $(PROJECT_DIR) $(ARDUINO_AVR) $(ARDUINO_CORE) [ GLOB $(ARDUINO_LIB) $(SKETCH_LIB) : * ] ;
HDRS = $(PROJECT_DIR) $(ARDUINO_AVR) $(ARDUINO_CORE) [ GLOB $(ARDUINO_LIB) $(SKETCH_LIB) : [^.]* ] ;

# Grab everything from the core directory
CORE_MODULES = [ GLOB $(ARDUINO_CORE) : *.c *.cpp ] ;
Expand Down

0 comments on commit 11c351f

Please sign in to comment.