summaryrefslogtreecommitdiff
path: root/tags/firmware/PIC/1.0/devices/stepmotorc/Makefile
blob: 55ddc0458fc246abb7d91c9ec4998ab8d335d273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

# This is a special target that just rebuilds another copy
# of stepmotor, but with a different address

CFLAGS += -DPORT=4
TARGET=stepmotorc



SOURCES=stepmotor1.c stepmotor2.c
include ../../picmake.inc

CFLAGS += -I$(CURDIR)/../stepmotor

$(BUILDDIR)/$(TARGET).hex:	$(SOURCES) $(OBJS) $(PICDEPS)
	cd $(BUILDDIR) && gplink -m -c -o $(TARGET).hex $(OBJS) $(LDFLAGS)
	perl $(BASEDIR)/tools/checkmap $(BUILDDIR)/$(TARGET).map

$(SOURCES):
	ln -sf ../stepmotor/$*.c .

include ../../make.inc
include $(SOURCES:.c=.dep)