diff --git a/Makefile b/Makefile index 14d8b7b..69530a7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ OBJECTS = x-wm.o client.o +LIBS = -lX11 -L /usr/X11R6/lib x-wm: $(OBJECTS) - $(CC) $(CFLAGS) -o $@ $^ -lX11 -L /usr/X11R6/lib + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) %.o: %.c $(CC) $(CFLAGS) -c $*.c