imtk
annotate Makefile @ 10:467a520f5c00
implemented the listbox correctly, no scrollbars or explicit sizing yet
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sun, 17 Apr 2011 18:17:55 +0300 |
parents | b04d49e4599c |
children | df2bc9406561 |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard *.c src/*.c) |
nuclear@0 | 2 obj = $(src:.c=.o) |
nuclear@0 | 3 bin = test |
nuclear@0 | 4 |
nuclear@0 | 5 CC = gcc |
nuclear@0 | 6 CFLAGS = -pedantic -Wall -g -Isrc |
nuclear@0 | 7 LDFLAGS = $(libgl) |
nuclear@0 | 8 |
nuclear@0 | 9 ifeq ($(shell uname -s), Darwin) |
nuclear@0 | 10 libgl = -framework OpenGL -framework GLUT |
nuclear@0 | 11 else |
nuclear@9 | 12 libgl = -lGL -lGLU -lglut |
nuclear@0 | 13 endif |
nuclear@0 | 14 |
nuclear@0 | 15 $(bin): $(obj) |
nuclear@0 | 16 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 17 |
nuclear@0 | 18 .PHONY: clean |
nuclear@0 | 19 clean: |
nuclear@0 | 20 rm -f $(obj) $(bin) |