###############################################################################
# Makefile for project 
###############################################################################

## General options
PROJECT = 
MCU = PIC18F4550
COMPILER = "MPLAB C18"
TARGET = Release
SHELL = C:\Windows\system32\cmd.exe

## Tools general options
CCFLAGS=-I="C:\Program Files (x86)\Microchip\mplabc18\v3.47\bin\..\h" -p18f4550
LDFLAGS=-u_CRUNTIME -l"C:\Program Files (x86)\Microchip\mplabc18\v3.47\bin\..\lib" -p18f4550

## Processing Tools
CC=mcc18.exe
ASM=c:/mcc18/mpasm/MPASMWIN.exe
LD=mplink.exe
LIB=mplib.exe
#  C:/Users/DPTP/Documents/PIC18F4550_proba/PIC18F4550/Release/Release.hex: TOOL=LD
#     C:/Users/DPTP/Documents/PIC18F4550_proba/PIC18F4550/Release/main.o: TOOL=CC
#        C:/Users/DPTP/Documents/PIC18F4550_proba/PIC18F4550/main.c

# Build tree:
all:	Release

Release:	Release.hex
	cp "Release.hex" "../../PIC18F4550.hex"

Release.hex:	main.o 
	$(LD) $(LDFLAGS) 18f4550_g.lkr -o"Release.hex" "main.o"

main.o:	../main.c 
	$(CC) $(CCFLAGS)  -fo="main.o" "../main.c"

# tidy - delete all temporary files which are not involved in the target generation
tidy:

# cleanup - delete all generated files
clean:	tidy
	rm -rf Release.hex
	rm -rf main.o

