diff options
| author | Patrick Haller <patrick@haller.ws> | 2011-02-26 16:00:34 +0800 |
|---|---|---|
| committer | Patrick Haller <patrick@haller.ws> | 2011-02-26 16:00:34 +0800 |
| commit | 1ba640dfe5b92d45b2fb298165636dc14d7aa8f5 (patch) | |
| tree | c956409b82d5dc38fb4ac2b6a9f5cf5828fdcf2b /Makefile | |
initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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/. |
