From 1ba640dfe5b92d45b2fb298165636dc14d7aa8f5 Mon Sep 17 00:00:00 2001 From: Patrick Haller Date: Sat, 26 Feb 2011 16:00:34 +0800 Subject: initial commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..33249c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +PREFIX = /usr/local/ +SRC = x-session.c +X11SRC = x-move-resize.c x-alt-tab.c + +CC = gcc +CFLAGS = -O2 -Wall +X11LIB = -lX11 -L/usr/X11/lib + +BIN = ${SRC:.c=} +X11BIN = ${X11SRC:.c=} +all: $(BIN) $(X11BIN) + +$(BIN): %: %.c + $(CC) $(CFLAGS) $^ -o $@ + +$(X11BIN): %: %.c + $(CC) $(CFLAGS) $(X11LIB) $^ -o $@ + +clean: + rm $(BIN) $(X11BIN) + +install: + install -m 0755 $(BIN) $(X11BIN) ${PREFIX}/bin/. -- cgit v1.2.3