3 CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I.
8 LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
10 all: symlink scrotwm libswmhack
13 ln -sf ../scrotwm.c ../lib/swm_hack.c .
15 scrotwm: scrotwm.o linux.o
16 $(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
19 $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
21 libswmhack: swm_hack.so
22 $(CC) -shared -fpic -o libswmhack.so.$(LVERS) `lorder swm_hack.so|tsort`
25 rm -f scrotwm *.o *.so libswmhack.so.*