projects
/
dana
/
dcompmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split things off into screen.c/h
[dana/dcompmgr.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
0409160
..
2be3a3a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,6
@@
sources = $(wildcard *.c)
objs = $(sources:.c=.o)
sources = $(wildcard *.c)
objs = $(sources:.c=.o)
+headers = $(wildcard *.h)
CFLAGS=$(shell pkg-config --cflags xcb-composite glib-2.0) -ggdb
LIBS=$(shell pkg-config --libs xcb-composite glib-2.0)
CFLAGS=$(shell pkg-config --cflags xcb-composite glib-2.0) -ggdb
LIBS=$(shell pkg-config --libs xcb-composite glib-2.0)
@@
-7,5
+8,5
@@
LIBS=$(shell pkg-config --libs xcb-composite glib-2.0)
dcompmgr: $(objs)
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
dcompmgr: $(objs)
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
-.c.o:
- $(CC) -c -o $@ $
^
$(CFLAGS)
+%.o: %.c $(headers)
+ $(CC) -c -o $@ $
<
$(CFLAGS)