Ongoing work (moving to another machine)
[xiph/unicode.git] / snatch / Makefile
blobc9f073c0530d025ed150ce5bcdd3df504b282962
1 BINDIR = /usr/local/bin
2 LIBDIR = /usr/local/lib
4 CC = gcc
5 CFLAGS = -O2 -W
6 SOFLAGS = -shared -L/usr/X11/lib
7 INSTALL = install
9 all: libsnatch.so snatch2yuv snatch2yuv2 snatch2wav
11 libsnatch.so: libsnatch.c x11.c oss.c esd.c realppm.h snatchppm.h waitppm.h
12 $(CC) $(CFLAGS) $(SOFLAGS) libsnatch.c -o libsnatch.so -lX11
14 snatch2yuv: snatchconvert.c snatch2yuv.c
15 $(CC) $(CFLAGS) snatchconvert.c snatch2yuv.c -o snatch2yuv -lm
17 snatch2yuv2: snatch2yuv
18 ln -s snatch2yuv snatch2yuv2
20 snatch2wav: snatchconvert.c snatch2wav.c
21 $(CC) $(CFLAGS) snatchconvert.c snatch2wav.c -o snatch2wav -lm
23 install: all
24 $(INSTALL) -d -m 0755 $(BINDIR)
25 $(INSTALL) -d -m 0755 $(LIBDIR)
26 $(INSTALL) -m 0755 ./snatch2yuv $(BINDIR)
27 $(INSTALL) -m 0755 ./snatch2yuv2 $(BINDIR)
28 $(INSTALL) -m 0755 ./snatch2wav $(BINDIR)
29 $(INSTALL) -m 0755 ./Snatch $(BINDIR)
30 $(INSTALL) -m 0644 ./libsnatch.so $(LIBDIR)
32 clean:
33 rm -f libsnatch.so snatch2yuv snatch2yuv2 snatch2wav