gtksubdir.mk 529 B

1234567891011121314151617181920212223242526272829
  1. include $(ROOTDIR)/makefiles/config.mk
  2. INCLUDE = $(ZINCLUDE) $(EXTERNAL_INCLUDE) $(GTKINCLUDE)
  3. HEADERS = $(wildcard *.h)
  4. CSOURCES = $(wildcard *.c)
  5. SOURCES = $(wildcard *.cpp)
  6. OBJECTS = $(patsubst %.c, %.o, $(CSOURCES))
  7. OBJECTS += $(patsubst %.cpp, %.o, $(SOURCES))
  8. .SUFFIXES: .c .cpp .o .h
  9. .c.o:
  10. @echo -n 'Compiling $@ ...'
  11. @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
  12. @echo ' OK'
  13. .cpp.o:
  14. @echo -n 'Compiling $@ ...'
  15. @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
  16. @echo ' OK'
  17. all: $(OBJECTS)
  18. clean:
  19. @$(RM) *.o *.d
  20. -include *.d