harbour-books/makefiles/gtksubdir.mk
Slava Monich cd357843cb Squashed 'fbreader/fbreader/' content from commit 7abc80d
git-subtree-dir: fbreader/fbreader
git-subtree-split: 7abc80d12fab06b05ea1fe68a0e73ea5e9486463
2015-05-26 23:59:24 +03:00

28 lines
529 B
Makefile

include $(ROOTDIR)/makefiles/config.mk
INCLUDE = $(ZINCLUDE) $(EXTERNAL_INCLUDE) $(GTKINCLUDE)
HEADERS = $(wildcard *.h)
CSOURCES = $(wildcard *.c)
SOURCES = $(wildcard *.cpp)
OBJECTS = $(patsubst %.c, %.o, $(CSOURCES))
OBJECTS += $(patsubst %.cpp, %.o, $(SOURCES))
.SUFFIXES: .c .cpp .o .h
.c.o:
@echo -n 'Compiling $@ ...'
@$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
@echo ' OK'
.cpp.o:
@echo -n 'Compiling $@ ...'
@$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
@echo ' OK'
all: $(OBJECTS)
clean:
@$(RM) *.o *.d
-include *.d