summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2453f96..0d7e393 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,25 @@
-CC = gcc
+# Where to install the ratpoison executable
+INSTALL_DIR=/usr/local/bin
-SRC = main.o events.o manage.o list.o bar.o
-LIBS = -lX11
+# Spew lots of debug messages
+DEBUG = -DDEBUG
+CC = gcc
+LIBS = -lX11
LDFLAGS = -L/usr/X11R6/lib
CFLAGS = -g -Wall -I/usr/X11R6/include
-DEBUG = -DDEBUG
+SRC = main.o events.o manage.o list.o bar.o
+HEADERS = bar.h conf.h data.h events.h list.h manage.h ratpoison.h
ratpoison: $(SRC)
gcc $(SRC) -o $@ $(CFLAGS) $(LDFLAGS) $(LIBS)
-%.o : %.c ratpoison.h conf.h
+install: ratpoison
+ cp ratpoison $(INSTALL_DIR)
+
+%.o : %.c $(HEADERS)
$(CC) -c $(CFLAGS) $(DEBUG) $< -o $@
clean :