stereoplay
view Makefile @ 3:0d9a1e23726c
added COPYING and README
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 03 Nov 2011 21:54:30 +0200 |
parents | |
children | ba7d221f6725 |
line source
1 PREFIX = /usr/local
2 sdrdir = $(PREFIX)/share/stereoplay
3 sdr = $(wildcard sdr/*.glsl)
5 src = $(wildcard src/*.c)
6 obj = $(src:.c=.o)
7 bin = stereoplay
9 CC = gcc
10 CFLAGS = -pedantic -Wall -g
11 LDFLAGS = $(gllibs_$(shell uname -s)) -lavformat -lavcodec -lswscale
13 gllibs_Linux = -lGL -lGLU -lglut -lGLEW
15 $(bin): $(obj)
16 $(CC) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)
22 .PHONY: install
23 install:
24 install -m 775 $(bin) $(PREFIX)/bin/$(bin)
25 install -d $(sdrdir)
26 install -m 664 $(sdr) $(sdrdir)/
28 .PHONY: uninstall
29 uninstall:
30 rm -f $(PREFIX)/bin/$(bin)
31 rm -f $(sdrdir)/*
32 rmdir $(sdrdir)