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

## General options
PROJECT = 
MCU = PIC12F683
COMPILER = "HI-TECH C for PIC10/12/16"
TARGET = Debug
CLOCK = 4000000
SHELL = C:\WINDOWS\system32\cmd.exe

## Tools general options
CCFLAGS=--pass1 --errformat="Error at file %%f line %%l column %%c: (%%n) %%s" --warnformat="Warning at file %%f line %%l column %%c: (%%n) %%s" --msgformat="Message at file %%f line %%l column %%c: (%%n) %%s" -G --chip=12F683
LDFLAGS=-G --output=mcof --errformat="Error at file %%f line %%l column %%c: (%%n) %%s" --warnformat="Warning at file %%f line %%l column %%c: (%%n) %%s" --msgformat="Message at file %%f line %%l column %%c: (%%n) %%s" --chip=12F683

## Processing Tools
CC=picc.exe
ASM=picc.exe
LD=picc.exe
LIB=picc.exe
#  F:/!!!!/My~Documents)/Projects/Programming/PIC/segment-C/project/Debug/Debug.cof: TOOL=LD
#     Debug/Segment.p1: TOOL=CC
#        F:/!!!!/My~Documents)/Projects/Programming/PIC/segment-C/project/Segment.c

# Build tree:
all:	Debug

Debug:	Debug/Debug.cof

Debug/Debug.cof:	Debug/Segment.p1 
	$(LD) $(LDFLAGS)  -O"Debug/Debug.cof" "Debug/Segment.p1"

Debug/Segment.p1:	Segment.c 
	$(CC) $(CCFLAGS)  -O"Debug/Segment.p1" "Segment.c"

# tidy - delete all temporary files which are not involved in the target generation
tidy:
	rm -rf Debug/Debug.hxl
	rm -rf Debug/Debug.lst
	rm -rf Debug/Debug.sym
	rm -rf Debug/Debug.obj
	rm -rf Debug/Debug.sdb
	rm -rf Debug/Debug.as
	rm -rf Debug/startup.obj
	rm -rf Debug/startup.rlf
	rm -rf Debug/startup.as
	rm -rf Debug/startup.lst
	rm -rf ./funclist.
	rm -rf Debug/Debug.hex
	rm -rf Debug/Segment.pre
	rm -rf Debug/Segment.lst

# cleanup - delete all generated files
clean:	tidy
	rm -rf Debug/Debug.cof
	rm -rf Debug/Segment.p1
