From 07f237ba496428453896cdfaf9973c1a0590e10f Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 16 Nov 2012 14:24:40 +0000 Subject: Cleanup makefiles --- (limited to 'Makefile.helpers') diff --git a/Makefile.helpers b/Makefile.helpers new file mode 100644 index 0000000..7bd2ad4 --- /dev/null +++ b/Makefile.helpers @@ -0,0 +1,17 @@ +HELPERS = $(COMMANDS)/helpers + +XRANDR_LIBS = $(shell pkg-config --libs xrandr x11) +X11_LIBS = $(shell pkg-config --libs x11) + +$(HELPERS)/list-outputs: $(HELPERS)/list-outputs.c + gcc -o $(HELPERS)/list-outputs \ + $(HELPERS)/list-outputs.c $(XRANDR_LIBS) + +$(HELPERS)/find-free-display: $(HELPERS)/find-free-display.c + gcc -o $(HELPERS)/find-free-display \ + $(HELPERS)/find-free-display.c $(X11_LIBS) + +helpers: $(HELPERS)/list-outputs $(HELPERS)/find-free-display + +clean-helpers: + rm -f $(HELPERS)/list-outputs $(HELPERS)/find-free-display -- cgit v0.9.1