blmc-config/Makefile

31 lines
574 B
Makefile
Raw Permalink Normal View History

2008-06-22 17:53:20 +02:00
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
2009-06-13 15:29:38 +02:00
-include $(shell find . -name \*.d 2> /dev/null)