gtk2 sam7fc telemetrie application
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.

28 lines
555B

  1. TARGET = gtdc
  2. CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
  3. LDFLAGS = $(shell pkg-config --libs gtk+-2.0 gtkdatabox)
  4. CFLAGS += $(shell pkg-config --cflags gtk+-2.0 gtkdatabox)
  5. # ------
  6. SRC := $(wildcard *.c)
  7. all: $(TARGET)
  8. $(TARGET): $(SRC:.c=.o)
  9. @echo " Linking file: $@"
  10. @$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
  11. %.o: %.c
  12. @echo " Building file: $<"
  13. @$(CC) -c $(CFLAGS) $< -o $@
  14. clean:
  15. rm -rf $(TARGET) *.o *.d
  16. socat:
  17. socat tcp4-listen:5000,fork,reuseaddr /dev/ttyACM0,raw,echo=0,flock-ex-nb
  18. -include $(shell find -name *.d 2> /dev/null)