Stap 4:
\Test\Makefile wijzigen 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 HY502B
alle: $(OBJS)
-p $(TARGET)
$(OBJS) $(TARGET)
io_test: io_test.c
$(CC) $(LIBS) $(INCS) < -o $@
HY502B: HY502B.c
$(CC) $(LIBS) $(INCS) < -o $@
adc_test: adc_test.c
$(CC) $(LIBS) $(INCS) < -o $@
pwm_test: pwm_test.c
$(CC) $(LIBS) $(INCS) < -o $@
spi_test: spi_test.c
$(CC) $(LIBS) $(INCS) < -o $@
adxl345_test: adxl345_test.c
$(CC) < -o $@
schoon:
ik in $(OBJS); rm -f $(TARGET) doen / $$ i; gedaan
HY502B: HY502B.c is de nieuwe toegevoegde
Open Terminal en compileren van de bibliotheek
Ubuntu cd c_enviroment Ubuntu $ maken