TARGET=motor SOURCES=motor1.c motor2.c include ../../picmake.inc CFLAGS += -DPORT=12 $(BUILDDIR)/$(TARGET).hex: $(OBJS) $(PICDEPS) cd $(BUILDDIR) && gplink -m -c -o $(TARGET).hex $(SOURCES:.c=.o) $(LDFLAGS) perl $(BASEDIR)/tools/checkmap $(BUILDDIR)/$(TARGET).map include ../../make.inc include $(SOURCES:.c=.dep)