summaryrefslogtreecommitdiff
path: root/trunk/reprap/miscellaneous/extruder-v2/Software/Makefile
blob: 7db242a433c7e81d052f7e630dc5b67041962f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Reprap
# 
# Makefile for the C code for the PIC in the extruder
#
# see http://reprap.org
#

# You may need to change this line for your system:

SDCCLIB=/usr/local/share/sdcc/lib/pic/



extruder.hex:	obj/extruder.o
	gplink -m -c -o extruder.hex obj/extruder.o  $(SDCCLIB)/libsdcc.lib

obj/extruder.o:	asm/extruder.asm
	gpasm -c -o obj/extruder.o asm/extruder.asm

asm/extruder.asm:	src/extruder.c include/extruder.h
	sdcc -Iinclude -S -V -mpic14 -p16f628 -o asm/extruder.asm src/extruder.c

clean:
	rm -f asm/extruder.asm extruder.hex asm/extruder.p obj/extruder.o extruder.cod \
	extruder.cof extruder.lst extruder.map obj/extruder.lst extruder.p asm/extruder.d