stereoplay

diff Makefile @ 0:265a24704ff2

stereoplay
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 06 Mar 2011 20:31:18 +0200
parents
children ba7d221f6725
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Sun Mar 06 20:31:18 2011 +0200
     1.3 @@ -0,0 +1,32 @@
     1.4 +PREFIX = /usr/local
     1.5 +sdrdir = $(PREFIX)/share/stereoplay
     1.6 +sdr = $(wildcard sdr/*.glsl)
     1.7 +
     1.8 +src = $(wildcard src/*.c)
     1.9 +obj = $(src:.c=.o)
    1.10 +bin = stereoplay
    1.11 +
    1.12 +CC = gcc
    1.13 +CFLAGS = -pedantic -Wall -g
    1.14 +LDFLAGS = $(gllibs_$(shell uname -s)) -lavformat -lavcodec -lswscale
    1.15 +
    1.16 +gllibs_Linux = -lGL -lGLU -lglut -lGLEW
    1.17 +
    1.18 +$(bin): $(obj)
    1.19 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.20 +
    1.21 +.PHONY: clean
    1.22 +clean:
    1.23 +	rm -f $(obj) $(bin)
    1.24 +
    1.25 +.PHONY: install
    1.26 +install:
    1.27 +	install -m 775 $(bin) $(PREFIX)/bin/$(bin)
    1.28 +	install -d $(sdrdir)
    1.29 +	install -m 664 $(sdr) $(sdrdir)/
    1.30 +
    1.31 +.PHONY: uninstall
    1.32 +uninstall:
    1.33 +	rm -f $(PREFIX)/bin/$(bin)
    1.34 +	rm -f $(sdrdir)/*
    1.35 +	rmdir $(sdrdir)