X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=lib%2FMakefile;h=494d96178c0e67f5d8986392aed4867988cc777e;hb=7aaace3eec5da47fda212e2715502957e94860a0;hp=c9970f417c623769810fb428dc1548941a9d3a46;hpb=6d08df47448f7f544d1814df558057cc45e845bd;p=spectrwm.git diff --git a/lib/Makefile b/lib/Makefile index c9970f4..494d961 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,7 +1,7 @@ -# $scrotwm$ - .include +PREFIX?=/usr/local + LIB= swmhack NOMAN= yes SRCS= swm_hack.c @@ -10,13 +10,13 @@ LIBDIR= ${X11BASE}/lib DEBUGLIBS= no NOPROFILE= yes -CFLAGS+=-Wall -Wno-uninitialized -ggdb3 +CFLAGS+=-Wall -Wno-uninitialized -ggdb3 -fPIC CFLAGS+= -I${X11BASE}/include install: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - ${X11BASE}/lib/swmhack.so + ${PREFIX}/lib/ .include .include