I'll do some Google searching also.
PROJECT=blinkSOURCES=$(PROJECT).cMMCU=atmega328pF_CPU=10000000# The serial port of your Arduino board (if using Arduino as ISP):# - on Mac OS X, use: /dev/tty.usbserial-*# - on Windows, use the appropriate COM port, e.g.: COM3# - on Linux, use: /dev/ttyUSB0SERIAL=/dev/ttyUSB4CFLAGS=-mmcu=$(MMCU) -DF_CPU=$(F_CPU) -Os$(PROJECT).hex: $(PROJECT).out avr-objcopy -j .text -O ihex $(PROJECT).out $(PROJECT).hex$(PROJECT).out: $(SOURCES) avr-gcc $(CFLAGS) -o $(PROJECT).out $(SOURCES)program-arduinoisp: $(PROJECT).hex avrdude -p $(MMCU) -P $(SERIAL) -c stk500v1 -U flash:w:$(PROJECT).hexprogram-avrisp2: $(PROJECT).hex avrdude -p $(MMCU) -P usb -c avrisp2 -U flash:w:$(PROJECT).hexprogram-usbtiny: $(PROJECT).hex /arduino-1.0.1/hardware/tools/avrdude -p $(MMCU) -c usbtiny -U flash:w:$(PROJECT).hexclean: rm $(PROJECT).out $(PROJECT).hex
I'd like to do this in baby steps, but the end goal is to build a cross platform, graphical user interface that basically takes a file and loads the data into an array that is uploaded on the Arduino Mega. (Right now, I've made a simple C++ script that I run through a command prompt. It reads the .txt file and then builds the Arduino sketch based on the data it finds in the .txt file. Then, I have to copy the text into the Arduino software and upload that to the board. I want to streamline and idiot proof this process so that the end user can simply double click an icon, load a .txt file, choose a couple of parameters and then click "upload" and the program will build the code and upload it to the Arduino)