stereoimg
view Makefile @ 0:b2a2a355b633
created a repo for stereoimg
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 14 Jun 2012 00:31:51 +0300 |
parents | |
children |
line source
1 PREFIX = /usr/local
3 src = $(wildcard src/*.c)
4 obj = $(src:.c=.o)
5 bin = stereoimg
7 CC = gcc
8 CFLAGS = -pedantic -Wall -g
9 LDFLAGS = $(libgl) -limago
11 ifeq ($(shell uname -s), Darwin)
12 libgl = -framework OpenGL -framework GLUT
13 else
14 libgl = -lGL -lglut
15 endif
18 $(bin): $(obj)
19 $(CC) -o $@ $(obj) $(LDFLAGS)
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin)
27 .PHONY: install
28 install:
29 mkdir -p $(PREFIX)/bin
30 cp $(bin) $(PREFIX)/bin/$(bin)
32 .PHONY: uninstall
33 uninstall:
34 rm -f $(PREFIX)/bin/$(bin)