blob: b863e67f19f80f50bbf960a3000d6ab49af8c93f (
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=3
TARGET=stepmotorb
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)
|