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.

29 lines
598B

  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 unixsocket.c
  7. all: $(TARGET1) $(TARGET2)
  8. $(TARGET1): $(SRC1:.c=.o)
  9. @echo " Linking file: $@"
  10. @$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
  11. $(TARGET2): $(SRC2:.c=.o)
  12. @echo " Linking file: $@"
  13. @$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
  14. %.o: %.c
  15. @echo " Building file: $<"
  16. @$(CC) -c $(CFLAGS) $< -o $@
  17. clean:
  18. rm -rf $(TARGET1) $(TARGET2) *.o *.d
  19. -include $(shell find . -name \*.d 2> /dev/null)