A small USV for ALIX boards with i2c support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 668B

1234567891011121314151617181920212223242526272829
  1. TARGET1 = alix-usv
  2. TARGET2 = alix-usvd
  3. CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
  4. # ------
  5. SRC1 := alix-usv.c logging.c unixsocket.c
  6. SRC2 := alix-usvd.c configfile.c event.c logging.c pidfile.c signals.c unixsocket.c
  7. SRC2 += usvdevice.c usvstate.c
  8. all: $(TARGET1) $(TARGET2)
  9. $(TARGET1): $(SRC1:.c=.o)
  10. @echo " Linking file: $@"
  11. @$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
  12. $(TARGET2): $(SRC2:.c=.o)
  13. @echo " Linking file: $@"
  14. @$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
  15. %.o: %.c
  16. @echo " Building file: $<"
  17. @$(CC) -c $(CFLAGS) $< -o $@
  18. clean:
  19. rm -rf $(TARGET1) $(TARGET2) *.o *.d *.log *.sock *.pid
  20. -include $(shell find . -name \*.d 2> /dev/null)