-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (18 loc) · 766 Bytes
/
Makefile
File metadata and controls
28 lines (18 loc) · 766 Bytes
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
CC = g++
PKGS = xcb xcb-xtest
CPPFLAGS = -g -fpermissive `pkg-config --cflags $(PKGS)`
EXTRALIBS= -lboost_system -lboost_thread -lpthread
LDFLAGS = `pkg-config --libs $(PKGS)` $(EXTRALIBS)
all: wall sender
wall: wall.o xcbutil.o serverthread.o vcursor.o enforcer.o
$(CC) -g -o $@ wall.o xcbutil.o serverthread.o vcursor.o enforcer.o $(LDFLAGS)
wall.o: wall.cpp xcbutil.h mouse.h serverthread.h enforcer.h
sender: sender.o xcbutil.o
$(CC) -g -o $@ sender.o xcbutil.o $(LDFLAGS)
sender.o: sender.cpp xcbutil.h mouse.h
serverthread.o: serverthread.cpp serverthread.h xcbutil.h mouse.h enforcer.h
vcursor.o: vcursor.cpp vcursor.h xcbutil.h mouse.h
enforcer.o: enforcer.cpp enforcer.h xcbutil.h
xcbutil.o : xcbutil.h xcbutil.cpp
clean:
rm *.o; make