X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=osx%2FMakefile;h=899b3fb1b4f81619cb024b2df157c1c63d4c0999;hb=3f810281df3bd11273632ccfdb9f766d75778ab0;hp=e3924eb34f4e4992055b2032faf514713a0a4aa2;hpb=19f78726c19ab0b632cee45c53e3a6020e8f7b32;p=spectrwm.git diff --git a/osx/Makefile b/osx/Makefile index e3924eb..899b3fb 100644 --- a/osx/Makefile +++ b/osx/Makefile @@ -1,9 +1,17 @@ +# To use homebrew instead of macports, uncomment the following three lines. +#INCFLAGS+= -I/opt/X11/include +#LDADD+= -lX11 -lXcursor -lXft -L/opt/X11/lib +#INCFLAGS+= -I/usr/local/Cellar/freetype/2.4.10/include/freetype2 + +# To use homebrew instead of macports, comment out the following two lines. 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/opt/local/lib -lX11 -lXcursor -lXft + LDADD+= -lxcb-keysyms -lxcb-util -lxcb-randr -lX11-xcb -lxcb-xtest -lxcb -lxcb-icccm +CFLAGS+= -O2 -Wall -g -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS} +CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" + PREFIX?= /usr/local BINDIR?= $(PREFIX)/bin LIBDIR?= $(PREFIX)/lib @@ -18,6 +26,7 @@ all: spectrwm libswmhack.so.$(LVERS) spectrwm.c: ln -sf ../linux/tree.h ln -sf ../spectrwm.c + ln -sf ../version.h swm_hack.c: ln -sf ../lib/swm_hack.c @@ -47,6 +56,6 @@ install: all ln -sf $(DESTDIR)$(BINDIR)/spectrwm $(DESTDIR)$(BINDIR)/scrotwm clean: - rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c tree.h + rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c tree.h version.h .PHONY: all install clean