Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of git@github.com:nick125/arduinoide
Browse files Browse the repository at this point in the history
  • Loading branch information
nick125 committed Sep 1, 2008
2 parents d2074c7 + 01cf056 commit 0e4cd7c
Showing 1 changed file with 46 additions and 9 deletions.
55 changes: 46 additions & 9 deletions resources/arduino/ADC/Fading/Makefile.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python
#
# ArduinoIDE Project (http://arduino.bitmeadow.org)
# (c) 2008 ArduinoIDE Contributors
# Licensed under GPLv2. View LICENSE for more information
#
# Arduino 0011 Makefile
# Arduino adaptation by mellis, eighthave, oli.keller, it.daniher
#
Expand All @@ -11,8 +16,10 @@
# 31-Aug-2008: Conversion to Python started
# Author: Dale Weber <robotguy@hybotics.org>
#
#
#Name of the .pde you're trying to compile
TARGET = "Fading"
TARGET_EXT = ".pde"
#Name of the MCU in your arduino
MCU = "atmega168"
#hz of the MCU in your arduino
Expand Down Expand Up @@ -59,13 +66,14 @@
LDFLAGS = "-lm"

# Program settings
CC = "$(AVR_TOOLS_PATH)/avr-gcc
CXX = "$(AVR_TOOLS_PATH)/avr-g++
OBJCOPY = "$(AVR_TOOLS_PATH)/avr-objcopy
OBJDUMP = "$(AVR_TOOLS_PATH)/avr-objdump
AR = "$(AVR_TOOLS_PATH)/avr-ar
SIZE = "$(AVR_TOOLS_PATH)/avr-size
NM = "$(AVR_TOOLS_PATH)/avr-nm
CC = "$(AVR_TOOLS_PATH)/avr-gcc"
CXX = "$(AVR_TOOLS_PATH)/avr-g++"
OBJCOPY = "$(AVR_TOOLS_PATH)/avr-objcopy"
OBJDUMP = "$(AVR_TOOLS_PATH)/avr-objdump"
AR = "$(AVR_TOOLS_PATH)/avr-ar"
SIZE = "$(AVR_TOOLS_PATH)/avr-size"
NM = "$(AVR_TOOLS_PATH)/avr-nm"

REMOVE = "rm -f"
MV = "mv -f"

Expand All @@ -84,6 +92,35 @@
# Targets start here - the real conversion begins!
#
# Default target.
def BuildAll():
BuildAppletFiles();
Build();
currsize = SizeAfter();

return;

def BuildAppletFiles():

return;

def Build():
BuildElf();
BuildHex();

return;

def SizeAfter():

return;

def BuildElf():

return;

def BuildHex():

return;

all: applet_files build sizeafter

build: elf hex
Expand All @@ -105,8 +142,8 @@
hex: applet/$(TARGET).hex

# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) applet/$(TARGET).hex
ELFSIZE = $(SIZE) applet/$(TARGET).elf
HEXSIZE = "$(SIZE) --target=$(FORMAT) applet/$(TARGET).hex"
ELFSIZE = "$(SIZE) applet/$(TARGET).elf"
sizebefore:
@if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi

Expand Down

0 comments on commit 0e4cd7c

Please sign in to comment.