nanox code removed.
[lbook_fbreader.git] / makefiles / qsubdir.mk
blob4faec693811343975841b16818b503a504075d41
1 include $(ROOTDIR)/makefiles/config.mk
2 -include moc.mk
4 INCLUDE = $(QTINCLUDE) $(ZINCLUDE) $(EXTERNALINCLUDE)
6 HEADERS = $(wildcard *.h)
7 SOURCES = $(wildcard *.cpp)
8 OBJMOC = $(patsubst %.cpp, %.o, $(SRCMOC))
9 OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
11 .SUFFIXES: .cpp .moc.cpp .moc.o .o .h
13 .cpp.o:
14 @echo -n "Compiling $@ ..."
15 @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
16 @echo " OK"
18 .h.moc.cpp:
19 @echo -n "Generating $@ ..."
20 @$(MOC) $< -o $@
21 @echo " OK"
23 all: $(OBJECTS) $(OBJMOC)
25 clean:
26 @$(RM) *.o *.moc.cpp *.d
28 -include *.d