1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Initial Arduino IDE based on Processing.

This commit is contained in:
David A. Mellis
2005-08-25 21:06:28 +00:00
commit 9fc5aa63f6
373 changed files with 71081 additions and 0 deletions

View File

@ -0,0 +1,4 @@
/avrproj_make/1.1.1.1/Wed Apr 27 14:06:09 2005//
/avrproj_make_orig/1.1.1.1/Wed Apr 27 14:06:09 2005//
/readme.txt/1.1.1.1/Wed Apr 27 14:06:09 2005//
D

View File

@ -0,0 +1 @@
Arduino/wiringlite/avrlib/make

View File

@ -0,0 +1 @@
:ext:mbanzi@cvs.arduino.berlios.de:/cvsroot/arduino

View File

@ -0,0 +1,113 @@
#----------------------------------------------------------------------------------
# ARM-GCC standard Makefile
# This makefile is to be used by including it from a project-specific makefile
# which defines the source files and compiler/linker options
#
# Written by Pascal Stang
# Based on Volker Oth's AVR makefiles of jan.2000
# ---------------------------------------------------------------------------------
###### BLOCK 1) define some variables based on the AVR base path in $(AVR) #######
CC = avr-gcc
AS = avr-gcc -x assembler-with-cpp
RM = rm -f
RN = mv
CP = cp
BIN = avr-objcopy
SIZE = avr-size
INCDIR = .
# LIBDIR = $(AVR)/avr/lib
# SHELL = $(AVR)/bin/sh.exe
###### BLOCK 2) output format can be srec, ihex (avrobj is always created) #######
FORMAT = ihex
###### BLOCK 3) define all project specific object files ######
SRC += $(addprefix $(AVRLIB)/,$(AVRLIB_SRC))
OBJ = $(ASRC:.s=.o) $(SRC:.c=.o)
CPFLAGS += -mmcu=$(MCU)
ASFLAGS += -mmcu=$(MCU)
LDFLAGS += -mmcu=$(MCU)
###### BLOCK 4) this defines the aims of the make process ######
#all: $(TRG).obj $(TRG).elf $(TRG).hex $(TRG).cof $(TRG).eep $(TRG).ok
all: $(TRG).elf $(TRG).cof $(TRG).hex $(TRG).eep $(TRG).ok
###### BLOCK 5) compile: instructions to create assembler and/or object files from C source ######
%.o : %.c
$(CC) -c $(CPFLAGS) -I$(INCDIR) $< -o $@
%.s : %.c
$(CC) -S $(CPFLAGS) -I$(INCDIR) $< -o $@
###### BLOCK 6) assemble: instructions to create object file from assembler files ######
%.o : %.s
$(AS) -c $(ASFLAGS) -I$(INCDIR) $< -o $@
###### BLOCK 7) link: instructions to create elf output file from object files ######
%.elf: $(OBJ)
$(CC) $(OBJ) $(LIB) $(LDFLAGS) -o $@
###### BLOCK 8) create avrobj file from elf output file ######
#%.obj: %.elf
# $(BIN) -O avrobj -R .eeprom $< $@
###### BLOCK 9) create bin (.hex and .eep) files from elf output file ######
%.hex: %.elf
$(BIN) -O $(FORMAT) -R .eeprom $< $@
%.eep: %.elf
$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
%.cof: %.elf
$(BIN) --debugging -O coff-ext-avr \
--change-section-address .data-0x800000 \
--change-section-address .bss-0x800000 \
--change-section-address .noinit-0x800000 \
--change-section-address .eeprom-0x810000 \
$< $@
###### BLOCK 10) If all other steps compile ok then echo "Errors: none" ######
%ok:
$(SIZE) $(TRG).elf
@echo "Errors: none"
###### BLOCK 11) make instruction to delete created files ######
clean:
$(RM) $(OBJ)
$(RM) $(SRC:.c=.s)
$(RM) $(SRC:.c=.lst)
$(RM) $(TRG).map
$(RM) $(TRG).elf
$(RM) $(TRG).cof
$(RM) $(TRG).obj
$(RM) $(TRG).a90
$(RM) $(TRG).hex
$(RM) $(TRG).sym
$(RM) $(TRG).eep
$(RM) $(TRG).hex
$(RM) *.bak
$(RM) *.log
@echo "Errors: none"
size:
$(SIZE) $(TRG).elf

View File

@ -0,0 +1,111 @@
#----------------------------------------------------------------------------------
# GCC-AVR standard Makefile part 3
# Based on Volker Oth's makefiles of jan.2000
# Modified and merged by AVRfreaks.net for smoother integration with AVR Studio,
# and easier comprehension for the average user (nov.2001). Minor errors corrected.
# ---------------------------------------------------------------------------------
###### BLOCK 1) define some variables based on the AVR base path in $(AVR) #######
CC = avr-gcc
AS = avr-gcc -x assembler-with-cpp
RM = rm -f
RN = mv
CP = cp
BIN = avr-objcopy
SIZE = avr-size
INCDIR = .
# LIBDIR = $(AVR)/avr/lib
# SHELL = $(AVR)/bin/sh.exe
###### BLOCK 2) output format can be srec, ihex (avrobj is always created) #######
FORMAT = ihex
###### BLOCK 3) define all project specific object files ######
SRC += $(AVRLIBSRC)
OBJ = $(ASRC:.s=.o) $(SRC:.c=.o)
CPFLAGS += -mmcu=$(MCU)
ASFLAGS += -mmcu=$(MCU)
LDFLAGS += -mmcu=$(MCU)
###### BLOCK 4) this defines the aims of the make process ######
#all: $(TRG).obj $(TRG).elf $(TRG).hex $(TRG).cof $(TRG).eep $(TRG).ok
all: $(TRG).elf $(TRG).cof $(TRG).hex $(TRG).eep $(TRG).ok
###### BLOCK 5) compile: instructions to create assembler and/or object files from C source ######
%.o : %.c
$(CC) -c $(CPFLAGS) -I$(INCDIR) $< -o $@
%.s : %.c
$(CC) -S $(CPFLAGS) -I$(INCDIR) $< -o $@
###### BLOCK 6) assemble: instructions to create object file from assembler files ######
%.o : %.s
$(AS) -c $(ASFLAGS) -I$(INCDIR) $< -o $@
###### BLOCK 7) link: instructions to create elf output file from object files ######
%.elf: $(OBJ)
$(CC) $(OBJ) $(LIB) $(LDFLAGS) -o $@
###### BLOCK 8) create avrobj file from elf output file ######
#%.obj: %.elf
# $(BIN) -O avrobj -R .eeprom $< $@
###### BLOCK 9) create bin (.hex and .eep) files from elf output file ######
%.hex: %.elf
$(BIN) -O $(FORMAT) -R .eeprom $< $@
%.eep: %.elf
$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
%.cof: %.elf
$(BIN) --debugging -O coff-ext-avr \
--change-section-address .data-0x800000 \
--change-section-address .bss-0x800000 \
--change-section-address .noinit-0x800000 \
--change-section-address .eeprom-0x810000 \
$< $@
###### BLOCK 10) If all other steps compile ok then echo "Errors: none" ######
%ok:
$(SIZE) $(TRG).elf
@echo "Errors: none"
###### BLOCK 11) make instruction to delete created files ######
clean:
$(RM) $(OBJ)
$(RM) $(SRC:.c=.s)
$(RM) $(SRC:.c=.lst)
$(RM) $(TRG).map
$(RM) $(TRG).elf
$(RM) $(TRG).cof
$(RM) $(TRG).obj
$(RM) $(TRG).a90
$(RM) $(TRG).hex
$(RM) $(TRG).sym
$(RM) $(TRG).eep
$(RM) $(TRG).hex
$(RM) *.bak
$(RM) *.log
@echo "Errors: none"
size:
$(SIZE) $(TRG).elf

View File

@ -0,0 +1,26 @@
The "avrproj_make" file in this directory is an important part of the
compiling process for all AVRLib example code. Unless you are familiar with
writing your own makefiles, it is highly suggested that you use this file
to help compile your own code projects too.
------------------------------------------------------------------------------
To make "avrproj_make" work, you must have the following two environment
variables defined with appropriate values:
AVR = [path to WinAVR/AVR-GCC install directory]
AVRLIB = [path to AVRLib install directory]
For example, if you installed WinAVR in C:\WinAVR, then you should set:
AVR = c:\WinAVR
If you installed/unzipped AVRLib in c:\code\avr\avrlib, then set:
AVRLib = c:\code\avr\avrlib
------------------------------------------------------------------------------
If you are unsure how to set environment variables on your system, check the
installation guides on hubbard.engr.scu.edu/embedded or consult the web.