stereoplay

annotate Makefile @ 1:b50fd6f24975

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