gui
[lbook_fbreader.git] / makefiles / nxsubdir.mk
blob630d1d9085ccc778d66ddb50a5537dc48912c5e3
1 include $(ROOTDIR)/makefiles/config.mk
3 INCLUDE = $(ZINCLUDE) $(EXTERNALINCLUDE) $(NXINCLUDE)
5 HEADERS = $(wildcard *.h)
6 SOURCES = $(wildcard *.cpp)
7 OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
9 .SUFFIXES: .cpp .o .h
11 .cpp.o:
12 @echo -n "Compiling $@ ..."
13 @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
14 @echo " OK"
16 all: $(OBJECTS)
18 clean:
19 @$(RM) *.o *.d
21 -include *.d