[xiph-cvs] cvs commit: snatch Makefile

Monty xiphmont at xiph.org
Mon Feb 25 22:01:39 PST 2002



xiphmont    02/02/25 22:01:39

  Added:       .        Makefile
  Log:
  add a simple makefile

Revision  Changes    Path
1.1                  snatch/Makefile

Index: Makefile
===================================================================
BINDIR  = /usr/local/bin
LIBDIR  = /usr/local/lib

CC	= gcc
CFLAGS	= -O2 -W
SOFLAGS = -shared
INSTALL = install

all:		libsnatch.so snatch2yuv snatch2yuv2 snatch2wav

libsnatch.so: 	libsnatch.c x11.c oss.c esd.c realppm.h snatchppm.h waitppm.h
        $(CC) $(CFLAGS) $(SOFLAGS) libsnatch.c -o libsnatch.so

natch2yuv: 	snatchconvert.c snatch2yuv.c
        $(CC) $(CFLAGS) snatchconvert.c snatch2yuv.c -o snatch2yuv -lm

natch2yuv2: 	snatch2yuv
        ln -s snatch2yuv snatch2yuv2

natch2wav: 	snatchconvert.c snatch2wav.c
        $(CC) $(CFLAGS) snatchconvert.c snatch2wav.c -o snatch2wav -lm

install: 	all
        $(INSTALL) -d -m 0755 $(BINDIR)
        $(INSTALL) -d -m 0755 $(LIBDIR)
        $(INSTALL) -m 0755 ./snatch2yuv $(BINDIR)
        $(INSTALL) -m 0755 ./snatch2yuv2 $(BINDIR)
        $(INSTALL) -m 0755 ./snatch2wav $(BINDIR)
        $(INSTALL) -m 0755 ./Snatch $(BINDIR)
        $(INSTALL) -m 0644 ./libsnatch.so $(LIBDIR)

clean:
        rm -f libsnatch.so snatch2yuv snatch2yuv2 snatch2wav

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list