1 include $(ROOTDIR
)/makefiles
/config.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
14 @echo
-n
"Compiling $@ ..."
15 @
$(CC
) -MMD
-c
$(CFLAGS
) $(INCLUDE
) $<
19 @echo
-n
"Generating $@ ..."
23 all: $(OBJECTS
) $(OBJMOC
)
26 @
$(RM
) *.o
*.moc.
cpp *.d