stereoplay

view Makefile @ 1:b50fd6f24975

implemented pause
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 06 Mar 2011 20:53: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)