diff --git a/Makefile.inc b/Makefile.inc index 6674a31..36fbb94 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -149,6 +149,7 @@ MOC = moc UIC = uic RCC = rcc +LINT := $(dir $(lastword $(MAKEFILE_LIST)))Build/cpplint.py # @@ -205,6 +206,9 @@ profile: $(MAKE) OPTIMIZATION=profile +lint: + $(LINT) --linelength=120 --filter=-whitespace $(SOURCES) + $(OBJECTS_PATH)/%.o: %.c $(DEPENDS) @$(MKDIR) $(dir $@) $(CC) -c -o $@ $< $(CFLAGS)