metasurf

view examples/simple/Makefile @ 8:94220a9600b3

added missing -lm flags
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 20 Oct 2013 02:47:09 +0300
parents 2c575855f707
children
line source
1 src = $(wildcard *.c)
2 obj = $(src:.c=.o)
3 bin = simple
5 CC = gcc
6 CFLAGS = -pedantic -Wall -g -I../../src
7 LDFLAGS = -L../.. -lmetasurf $(libgl) -lm
9 ifeq ($(shell uname -s), Darwin)
10 libgl = -framework OpenGL -framework GLUT
11 else
12 libgl = -lGL -lGLU -lglut
13 endif
15 $(bin): $(obj)
16 $(CC) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)