summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-29 14:49:54 +0200
committerMC <mc@brain.hack.org>2010-06-29 14:49:54 +0200
commit26520481727c8f7802dd4f9bf512d33f1fde9121 (patch)
treee790f5f483198b330834322d54347b50ada2bfd1
parent0bd9762dde189f4c79c2611b48013042223611ed (diff)
downloadmcwm-26520481727c8f7802dd4f9bf512d33f1fde9121.zip
Cleaner makefile.
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7c68549..6ff53be 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,13 @@ LDFLAGS=-L/usr/local/lib -lxcb -lxcb-keysyms -lxcb-icccm -lxcb-atom
RM=/bin/rm
PREFIX=/usr/local
-TARGETS=mcwm list.o
+TARGETS=mcwm
+OBJS=mcwm.o list.o
all: $(TARGETS)
-mcwm: mcwm.o list.o config.h events.h Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mcwm.c list.o
+mcwm: $(OBJS) config.h events.h Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
mcwm-static: mcwm.c config.h
$(CC) -o mcwm-static mcwm.c -static -g -std=c99 -Wall \