summaryrefslogtreecommitdiffstats
path: root/.pc/0008-951-fix-calling-compiler.patch/makefiles/gtksubdir.mk
blob: aed94f3629d89fbe7e66b62b75a7cc9dfc25bd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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