CFLAGS += -Wall -O3 all: run off run: main.o pt7313e.o $(CC) -o $@ $^ $(LDFLAGS) main.o: main.c pt7313e.h $(CC) $(CFLAGS) -c -o $@ $< pt7313e.o: pt7313e.c pt7313e.h bitops.h $(CC) $(CFLAGS) -c -o $@ $< off: off.o pt7313e.o $(CC) -o $@ $^ $(LDFLAGS) off.o: off.c pt7313e.h $(CC) $(CFLAGS) -c -o $@ $< clean: rm -f -- *.o distclean: clean rm -f run