]> Pileus Git - wmpus/commitdiff
Add config.mk
authorAndy Spencer <andy753421@gmail.com>
Sun, 2 Oct 2011 00:37:37 +0000 (00:37 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 2 Oct 2011 01:06:09 +0000 (01:06 +0000)
.gitignore
config.mk.example [new file with mode: 0644]
makefile

index 702d51a1110cad5b33f8dbcbaa6117694e203539..5dac3809b53b8590d5270ade6361c4615201c773 100644 (file)
@@ -1,6 +1,8 @@
 *~
 *.o
 *.swp
 *~
 *.o
 *.swp
+.vimrc
+config.mk
 local
 wmpus
 wmpus.exe
 local
 wmpus
 wmpus.exe
diff --git a/config.mk.example b/config.mk.example
new file mode 100644 (file)
index 0000000..914a19d
--- /dev/null
@@ -0,0 +1,4 @@
+wm-wmii.o: CFLAGS += -DDEBUG -DMODKEY=ctrl
+
+test: $(PROG)
+       DISPLAY=:2.0 ./wmpus
index 651cf2cf1f3dba8c4a89e028b397bd7541c20afd..b7a1e8c366fbd19ea9ef34c616ea20da4b050b17 100644 (file)
--- a/makefile
+++ b/makefile
@@ -14,6 +14,8 @@ CFLAGS += -D_NO_OLDNAMES -DMARGIN=15
 PROG    = wmpus.exe
 endif
 
 PROG    = wmpus.exe
 endif
 
+include config.mk
+
 $(PROG): main.o util.o sys-$(SYS).o wm-$(WM).o
        $(CC) $(CFLAGS) -o $@ $+ $(LIBS)
 
 $(PROG): main.o util.o sys-$(SYS).o wm-$(WM).o
        $(CC) $(CFLAGS) -o $@ $+ $(LIBS)