From b181cd4a07b96f170a28a4580a96dfd8aa32aedb Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sun, 2 Oct 2011 00:37:37 +0000 Subject: [PATCH] Add config.mk --- .gitignore | 2 ++ config.mk.example | 4 ++++ makefile | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 config.mk.example diff --git a/.gitignore b/.gitignore index 702d51a..5dac380 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ *~ *.o *.swp +.vimrc +config.mk local wmpus wmpus.exe diff --git a/config.mk.example b/config.mk.example new file mode 100644 index 0000000..914a19d --- /dev/null +++ b/config.mk.example @@ -0,0 +1,4 @@ +wm-wmii.o: CFLAGS += -DDEBUG -DMODKEY=ctrl + +test: $(PROG) + DISPLAY=:2.0 ./wmpus diff --git a/makefile b/makefile index 651cf2c..b7a1e8c 100644 --- a/makefile +++ b/makefile @@ -14,6 +14,8 @@ CFLAGS += -D_NO_OLDNAMES -DMARGIN=15 PROG = wmpus.exe endif +include config.mk + $(PROG): main.o util.o sys-$(SYS).o wm-$(WM).o $(CC) $(CFLAGS) -o $@ $+ $(LIBS) -- 2.43.2