nuclear@0: PREFIX = /usr/local nuclear@0: sdrdir = $(PREFIX)/share/stereoplay nuclear@0: sdr = $(wildcard sdr/*.glsl) nuclear@0: nuclear@0: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: bin = stereoplay nuclear@0: nuclear@0: CC = gcc nuclear@5: CFLAGS = -pedantic -Wall -g -O2 nuclear@0: LDFLAGS = $(gllibs_$(shell uname -s)) -lavformat -lavcodec -lswscale nuclear@0: nuclear@0: gllibs_Linux = -lGL -lGLU -lglut -lGLEW nuclear@5: gllibs_Darwin = -framework OpenGL -framework GLUT -lGLEW nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@0: nuclear@0: .PHONY: install nuclear@0: install: nuclear@5: mkdir -p $(PREFIX)/bin $(sdrdir) nuclear@5: cp $(bin) $(PREFIX)/bin/$(bin) nuclear@5: cp $(sdr) $(sdrdir)/ nuclear@0: nuclear@0: .PHONY: uninstall nuclear@0: uninstall: nuclear@0: rm -f $(PREFIX)/bin/$(bin) nuclear@5: rm -f $(sdrdir)/*.glsl nuclear@0: rmdir $(sdrdir)