labyrinth

annotate 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
rev   line source
nuclear@3 1 include proj.mk
nuclear@3 2 src += src/glut/main.c
nuclear@3 3
nuclear@0 4 obj = $(src:.c=.o)
nuclear@0 5
nuclear@0 6 sys = $(shell uname -s)
nuclear@0 7
nuclear@3 8 libgl_Linux = -lGL -lGLU -lglut -lGLEW
nuclear@3 9 libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW
nuclear@0 10
nuclear@3 11 CFLAGS = -pedantic -Wall -g $(incpaths)
nuclear@3 12 LDFLAGS = $(libpaths) $(libgl_$(sys)) -lm
nuclear@0 13
nuclear@0 14 $(bin): $(obj)
nuclear@0 15 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 16
nuclear@0 17 .PHONY: clean
nuclear@0 18 clean:
nuclear@0 19 rm -f $(obj) $(bin)