Stap 4: compileren
modify\test\Makefile:LIBS =-L.. /.. / monster/core - larduino - lspi
INÈS =-IK... /.. /Sample/core/include
DOELSTELLING =... /.. sample/test
OBJS = io_test adc_test pwm_test spi_test adxl345_test MQ2
alle: $(OBJS)
-p $(TARGET)
$(OBJS) $(TARGET)
io_test: io_test.c
$(CC) $(LIBS) $(INCS) & lt; -o $@
MQ2: MQ2.c
$(CC) $(LIBS) $(INCS) & lt; -o $@
adc_test: adc_test.c
$(CC) $(LIBS) $(INCS) & lt; -o $@
pwm_test: pwm_test.c
$(CC) $(LIBS) $(INCS) & lt; -o $@
spi_test: spi_test.c
$(CC) $(LIBS) $(INCS) & lt; -o $@
adxl345_test: adxl345_test.c
$(CC) & lt; -o $@
schoon:
ik in $(OBJS); rm -f $(TARGET) doen / $$ i; gedaan
MQ2: MQ2.c in het midden is de nieuw toegevoegde programma.
Heropen de terminal om dll-bestand:
Ubuntu cd c_enviroment
Ubuntu $ maken