diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-16 14:24:40 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-16 14:24:40 (GMT) |
commit | 07f237ba496428453896cdfaf9973c1a0590e10f (patch) | |
tree | 2136dd5e689afac3853249e47a817cff97fecc4a /Makefile.helpers | |
parent | 4ffa3068a14518f07a0c100521413a9c7bcbaae5 (diff) |
Cleanup makefiles
Diffstat (limited to 'Makefile.helpers')
-rw-r--r-- | Makefile.helpers | 17 |
1 files changed, 17 insertions, 0 deletions
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 |