I need to port a application from C to C++ with it's native GTK+ toolkit the gtkmm library. So here it's Makefile.
CC = g++
SOURCES = util.cc parser.cc net.cc main.cc
OBJECTS = ${SOURCES:.cc=.o}
CFLAGS = -Wall -c `pkg-config --cflags gtkmm-2.4`
LIBS = `pkg-config --libs gtkmm-2.4`
TARGET = tsc-utility
all: ${OBJECTS}
${CC} ${LIBS} ${OBJECTS} -o ${TARGET}
.cc.o:
${CC} ${CFLAGS} $<
clean:
rm -rf *.o ${TARGET}