diff options
Diffstat (limited to 'makefiles/gtksubdir.mk')
-rw-r--r-- | makefiles/gtksubdir.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/makefiles/gtksubdir.mk b/makefiles/gtksubdir.mk new file mode 100644 index 0000000..23f51da --- /dev/null +++ b/makefiles/gtksubdir.mk @@ -0,0 +1,24 @@ +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: + $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE) $< + +.cpp.o: + $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(INCLUDE) $< + +all: $(OBJECTS) + +clean: + @$(RM) *.o *.d + +-include *.d |