Permalink
Browse files

autohide, windowdec, makefile, mousecursor, options

  • Loading branch information...
1 parent 05d6951 commit 4d1050a0d8db7da8154671735a5e039023db1a0e @harp1n committed Sep 21, 2011
Showing with 31 additions and 0 deletions.
  1. +8 −0 ChangeLog
  2. +23 −0 Makefile
View
8 ChangeLog
@@ -0,0 +1,8 @@
+
+2011-09-21
+ * adopted some changes from gebart (mouse cursor, Makefile)
+ * auto hide when mouse is not on captured screen
+ * automatic desktop size
+ * no window decorations
+ * commandline options
+
View
23 Makefile
@@ -0,0 +1,23 @@
+CC = gcc
+LIBS = -lX11 -lXext -lXfixes
+SOURCES=windump.c
+OBJS=$(SOURCES:.c=.o)
+EXECUTABLE=windump
+OPTIMIZE=2
+#DEBUG=-ggdb3
+DEBUG=
+CFLAGS=-O$(OPTIMIZE) $(DEBUG) -std=gnu99 -pedantic -Wall -Wextra
+LDFLAGS=$(DEBUG) -Wl,-O$(OPTIMIZE) -Wall -Wextra -Werror
+
+all: $(SOURCES) $(EXECUTABLE)
+
+$(EXECUTABLE): $(OBJS)
+ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+.c.o:
+ $(CC) $(CFLAGS) -c $< -o $@
+
+.PHONY: clean all
+
+clean:
+ \rm -f $(OBJS) $(EXECUTABLE) *~ core

0 comments on commit 4d1050a

Please sign in to comment.