labyrinth
annotate Makefile @ 4:f35596f110bc
fixed .hgignore
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 01 May 2015 04:38:43 +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) |