nanox code removed.
[lbook_fbreader.git] / makefiles / subdir.mk
blob2d2c1f85fc4a3bcd21f1ec438fae74d7a55e7de0
1 include $(ROOTDIR)/makefiles/config.mk
3 INCLUDE = $(ZINCLUDE) $(EXTERNALINCLUDE)
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 *.s *.ld *.d
21 -include *.d