From: Marco Peereboom Date: Sun, 8 Feb 2009 04:10:00 +0000 (+0000) Subject: Not sure if this works but at least has a fighting chance. X-Git-Tag: SCROTWM_0_9_30~289 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/7a67c7b461078056054f0e0d66a595532e885061 Not sure if this works but at least has a fighting chance. --- diff --git a/linux/Makefile b/linux/Makefile index 949ec6b..939c7b1 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,14 +1,25 @@ # $scrotwm$ -CFLAGS+= -Wall -Wno-uninitialised -ggdb -D_GNU_SOURCE -I. +CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I. LDADD+= -lX11 -lXrandr CC= gcc -all: scrotwm +LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor) + +all: symlink scrotwm libswmhack + +symlink: + ln -sf ../scrotwm.c ../lib/swm_hack.c . scrotwm: scrotwm.o linux.o $(CC) $(LDFLAGS) -o $@ $+ $(LDADD) +%.so: %.c + $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@ + +libswmhack: swm_hack.so + $(CC) -shared -fpic -o libswmhack.so.$(LVERS) `lorder swm_hack.so|tsort` + clean: - rm -f *.o + rm -f scrotwm *.o *.so libswmhack.so.*