Source

Mirror / Makefile

Full commit
program_NAME := mirrorWM
program_C_SRCS := $(wildcard ./src/*.c)
program_CXX_SRCS := $(wildcard ./src/*.cpp)
program_C_OBJS := ${program_C_SRCS:.c=.o}
program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o}
program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS)
program_INCLUDE_DIRS := include 
program_LIBRARY_DIRS :=
program_LIBRARIES := xcb xcb-util xcb-icccm xcb-ewmh xcb-keysyms xcb-randr xcb-cursor
CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir))  $(shell pkg-config --cflags cairomm-1.0) -std=c++11 -g
LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) $(shell pkg-config --libs cairomm-1.0)
LDFLAGS += $(foreach library,$(program_LIBRARIES),-l$(library))

.PHONY: all clean distclean

all: $(program_NAME)

$(program_NAME): $(program_OBJS)
	$(LINK.cc) $(program_OBJS) -o $(program_NAME)

clean:
	@- $(RM) $(program_NAME)
	@- $(RM) $(program_OBJS)

distclean: clean

rebuild: clean all