From 19f78726c19ab0b632cee45c53e3a6020e8f7b32 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Wed, 19 Dec 2012 09:31:21 -0500 Subject: [PATCH] Fixes for osx. Modify Makefile to include needed libraries and use paths for macports (which is currently required). Add some files for osx to gitignore. --- .gitignore | 6 ++++++ osx/Makefile | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 036d349..430f9aa 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,9 @@ lib/libswmhack_pic.a lib/swm_hack.so spectrwm tags +*~ +osx/spectrwm.c +osx/tree.h +osx/swm_hack.c +osx/swm_hack.so +osx/libswmhack.so.0.0 diff --git a/osx/Makefile b/osx/Makefile index 17f3054..e3924eb 100644 --- a/osx/Makefile +++ b/osx/Makefile @@ -1,6 +1,8 @@ -CFLAGS+= -O2 -Wall -g -D_GNU_SOURCE -D__OSX__ -I. -I.. +INCFLAGS+= -I/opt/local/include/freetype2 -I/opt/local/include +CFLAGS+= -O2 -Wall -g -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS} CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" -LDADD+= -L/usr/X11/lib/ -lX11 -lXrandr -lXtst -lXcursor +LDADD+= -L/opt/local/lib -lX11 -lXcursor -lXft +LDADD+= -lxcb-keysyms -lxcb-util -lxcb-randr -lX11-xcb -lxcb-xtest -lxcb -lxcb-icccm PREFIX?= /usr/local BINDIR?= $(PREFIX)/bin @@ -14,6 +16,7 @@ LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor) all: spectrwm libswmhack.so.$(LVERS) spectrwm.c: + ln -sf ../linux/tree.h ln -sf ../spectrwm.c swm_hack.c: @@ -44,6 +47,6 @@ install: all ln -sf $(DESTDIR)$(BINDIR)/spectrwm $(DESTDIR)$(BINDIR)/scrotwm clean: - rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c + rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c tree.h .PHONY: all install clean -- 2.39.2