cd357843cb
git-subtree-dir: fbreader/fbreader git-subtree-split: 7abc80d12fab06b05ea1fe68a0e73ea5e9486463
28 lines
529 B
Makefile
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
|