spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 31c122b64d91cba0bd12237952e1e88d38e775d5
parent 6a3a2b7d107daccf3d0ee2a3d53b76b246dd6422
Author: lostd <lostd@2f30.org>
Date:   Sat May 14 18:55:52 +0100

Use make

Diffstat:
Makefile | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,28 @@ +PREFIX = /usr/local +CFLAGS = -I/usr/X11R6/include +LDFLAGS = -L/usr/X11R6/lib +LDLIBS = -lxkbfile -lX11 +OBJ = spoon.o +BIN = spoon + +all: $(BIN) + +clean: + rm -f $(OBJ) $(BIN) + +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + +.PHONY: all clean install uninstall + +.SUFFIXES: .c .o + +.c.o: + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< + +$(BIN): $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) $(LDLIBS)