Seems like both of the approaches are naiive. I think we should use
something like pkgconfig as we do for the GTKINC variable
diff --git a/
config.mk b/
config.mk
index 0885e1d..5f58aa3 100644
--- a/
config.mk
+++ b/
config.mk
@@ -28,7 +28,7 @@ MANPREFIX = ${PREFIX}/share/man
# includes and libs
GTKINC=$(shell pkg-config --cflags gtk+-2.0 vte glib-2.0)
-GTKLIB=-lvte
+GTKLIB=$(shell pkg-config --libs gtk+-2.0 vte glib-2.0)
INCS = -I. -I/usr/include ${GTKINC}
LIBS = -L/usr/lib -lc ${GTKLIB}
this produces a slew of librariess to link
LDFLAGS = -s -L/usr/lib -lc -lvte -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpango-1.0
-lfreetype -lfontconfig -lgio-2.0 -lgobject-2.0 -lcairo -lX11
-lglib-2.0
what do you think of that?