JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Update bar more often and remove ./ from baraction.sh
[spectrwm.git] / linux / Makefile
1 # $scrotwm$ 
2
3 CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I.
4 LDADD+= -lX11 -lXrandr
5
6 CC= gcc
7
8 LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
9
10 all: symlink scrotwm libswmhack
11
12 symlink:
13         ln -sf ../scrotwm.c ../lib/swm_hack.c .
14
15 scrotwm: scrotwm.o linux.o
16         $(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
17
18 %.so: %.c
19         $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
20
21 libswmhack: swm_hack.so
22         $(CC) -shared -fpic -o libswmhack.so.$(LVERS) `lorder swm_hack.so|tsort`
23
24 clean:
25         rm -f scrotwm *.o *.so libswmhack.so.*