labyrinth
view Makefile @ 6:345db647383a
fixed the unloadable so bug
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 03 May 2015 02:23:54 +0300 |
parents | 8ba79034e8a6 |
children |
line source
1 include proj.mk
2 src += src/glut/main.c
4 obj = $(src:.c=.o)
6 sys = $(shell uname -s)
8 libgl_Linux = -lGL -lGLU -lglut -lGLEW
9 libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW
11 CFLAGS = -pedantic -Wall -g $(incpaths)
12 LDFLAGS = $(libpaths) $(libgl_$(sys)) -lm
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)