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.
 
 

30 lines
574 B

TARGET = blmc-config
CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
LDFLAGS = $(shell pkg-config --libs gtk+-2.0)
CFLAGS += $(shell pkg-config --cflags gtk+-2.0)
# ------
SRC := $(wildcard *.c)
all: $(TARGET)
$(TARGET): $(SRC:.c=.o)
@echo " Linking file: $@"
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
%.o: %.c
@echo " Building file: $<"
@$(CC) -c $(CFLAGS) $< -o $@
clean:
rm -rf $(TARGET) *.o *.d
driver:
sudo rmmod lp ppdev
sudo modprobe i2c-parport type=3
sudo modprobe i2c-dev
sudo chmod 666 /dev/i2c-0
-include $(shell find . -name \*.d 2> /dev/null)