# HOUSE-SCL => RA1 # HOUSE-SDA => RA0 # LOCAL-SCL => RA4 # LOCAL-SDA => RA5 UPLOAD = sec-board.hex UPLOAD_S = sensor.hex OBJECTS = \ LOCAL_master.o \ LOCAL_handy_i2c.o \ HOUSE_master.o \ HOUSE_slave.o \ HOUSE_handy_i2c.o \ ../handy/wait.o \ main.o OBJECTS_S = \ LOCAL_slave.o \ LOCAL_handy_i2c.o \ ../handy/wait.o \ sensor.o all: $(UPLOAD) $(UPLOAD_S) sec-board.hex: $(OBJECTS) gplink -m -c $^ -o $@ sensor.hex: $(OBJECTS_S) gplink -m -c $^ -o $@ LOCAL_master.o: ../i2c-master/master_A4_A5.o $(PICPREFIX) LOCAL_ $^ $@ LOCAL_slave.o: ../i2c-sync/slave_A4_A5.o $(PICPREFIX) LOCAL_ $^ .temp $(PICPREFIX) LOCAL_ I2C_skip .temp $@ LOCAL_handy_i2c.o: ../handy/i2c_A4_A5.o $(PICPREFIX) LOCAL_ $^ $@ HOUSE_master.o: ../i2c-master/master_A1_A0.o $(PICPREFIX) HOUSE_ $^ $@ HOUSE_slave.o: ../i2c-sync/slave_A1_A0.o $(PICPREFIX) HOUSE_ $^ .temp $(PICPREFIX) HOUSE_ I2C_skip .temp $@ HOUSE_handy_i2c.o: ../handy/i2c_A1_A0.o $(PICPREFIX) HOUSE_ $^ $@ upload_s upload-s: $(UPLOAD_S) pk2cmd -P PIC16F688 -M -Z -F $< OTHER_CLEAN = .temp include ../include/PIC.mk