# HOUSE-SCL => RA1 # HOUSE-SDA => RA0 # LOCAL-SCL => RA4 # LOCAL-SDA => RA5 FLAGS = UPLOAD0 = control-board0.hex UPLOAD = control-board.hex # for LOCAL0 (also connected to HOUSE) OBJECTS0 = \ LOCAL_master.o \ LOCAL_handy_i2c.o \ HOUSE_master.o \ HOUSE_slave.o \ HOUSE_handy_i2c.o \ ../handy/wait.o \ ../mpr121/mpr121.o \ main0.o \ mpr.o ### MPR code needed # TMP36, ePIR, LED backlight # for LOCAL1, LOCAL2, and LOCAL3 OBJECTS = \ LOCAL_slave.o \ LOCAL_handy_i2c.o \ ../handy/wait.o \ main.o ### MPR code needed # TMP36, ePIR, LED backlight all: $(UPLOAD0) $(UPLOAD) main0.o: main.asm gpasm -c $< -o $@ -DIS_LOCAL0 $(FLAGS) control-board0.hex: $(OBJECTS0) gplink -m -c $^ -o $@ control-board.hex: $(OBJECTS) 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_ $^ $@ upload0: $(UPLOAD0) pk2cmd -P PIC16F688 -M -Z -F $< include ../include/PIC.mk