gtk2/linux blmc config tool
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.

31 lines
574B

  1. TARGET = blmc-config
  2. CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
  3. LDFLAGS = $(shell pkg-config --libs gtk+-2.0)
  4. CFLAGS += $(shell pkg-config --cflags gtk+-2.0)
  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. driver:
  17. sudo rmmod lp ppdev
  18. sudo modprobe i2c-parport type=3
  19. sudo modprobe i2c-dev
  20. sudo chmod 666 /dev/i2c-0
  21. -include $(shell find . -name \*.d 2> /dev/null)