summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0ff38544411c81c4ffa8e908c7b372799ab64eef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Where to install the ratpoison executable
INSTALL_DIR=/usr/local/bin


# Spew lots of debug messages 
DEBUG = -DDEBUG

CC = gcc
LIBS = -lX11
LDFLAGS = -L/usr/X11R6/lib
CFLAGS = -g -Wall -I/usr/X11R6/include 

SRC = main.o events.o manage.o list.o bar.o number.o input.o
HEADERS = bar.h conf.h data.h events.h list.h manage.h ratpoison.h number.h input.h

all: ratpoison ratpoison.info

ratpoison: $(SRC) 
	gcc $(SRC) -o $@ $(CFLAGS) $(LDFLAGS) $(LIBS) 

ratpoison.info : ratpoison.texi
	makeinfo ratpoison.texi

install: ratpoison
	cp ratpoison $(INSTALL_DIR)

%.o : %.c $(HEADERS)
	$(CC) -c $(CFLAGS) $(DEBUG) $< -o $@

clean :
	rm -f *.o ratpoison ratpoison.info