stereoplay
view Makefile @ 5:ba7d221f6725
makefile modification
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 03 Nov 2011 22:01:01 +0200 |
parents | 265a24704ff2 |
children | 8fc045d33d62 |
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 -O2
11 LDFLAGS = $(gllibs_$(shell uname -s)) -lavformat -lavcodec -lswscale
13 gllibs_Linux = -lGL -lGLU -lglut -lGLEW
14 gllibs_Darwin = -framework OpenGL -framework GLUT -lGLEW
16 $(bin): $(obj)
17 $(CC) -o $@ $(obj) $(LDFLAGS)
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)
23 .PHONY: install
24 install:
25 mkdir -p $(PREFIX)/bin $(sdrdir)
26 cp $(bin) $(PREFIX)/bin/$(bin)
27 cp $(sdr) $(sdrdir)/
29 .PHONY: uninstall
30 uninstall:
31 rm -f $(PREFIX)/bin/$(bin)
32 rm -f $(sdrdir)/*.glsl
33 rmdir $(sdrdir)