stereoplay
changeset 5:ba7d221f6725
makefile modification
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 03 Nov 2011 22:01:01 +0200 |
parents | acf3d25f23cb |
children | 8fc045d33d62 |
files | Makefile |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/Makefile Thu Nov 03 21:57:12 2011 +0200 1.2 +++ b/Makefile Thu Nov 03 22:01:01 2011 +0200 1.3 @@ -7,10 +7,11 @@ 1.4 bin = stereoplay 1.5 1.6 CC = gcc 1.7 -CFLAGS = -pedantic -Wall -g 1.8 +CFLAGS = -pedantic -Wall -g -O2 1.9 LDFLAGS = $(gllibs_$(shell uname -s)) -lavformat -lavcodec -lswscale 1.10 1.11 gllibs_Linux = -lGL -lGLU -lglut -lGLEW 1.12 +gllibs_Darwin = -framework OpenGL -framework GLUT -lGLEW 1.13 1.14 $(bin): $(obj) 1.15 $(CC) -o $@ $(obj) $(LDFLAGS) 1.16 @@ -21,12 +22,12 @@ 1.17 1.18 .PHONY: install 1.19 install: 1.20 - install -m 775 $(bin) $(PREFIX)/bin/$(bin) 1.21 - install -d $(sdrdir) 1.22 - install -m 664 $(sdr) $(sdrdir)/ 1.23 + mkdir -p $(PREFIX)/bin $(sdrdir) 1.24 + cp $(bin) $(PREFIX)/bin/$(bin) 1.25 + cp $(sdr) $(sdrdir)/ 1.26 1.27 .PHONY: uninstall 1.28 uninstall: 1.29 rm -f $(PREFIX)/bin/$(bin) 1.30 - rm -f $(sdrdir)/* 1.31 + rm -f $(sdrdir)/*.glsl 1.32 rmdir $(sdrdir)