refmod_test
view Makefile @ 1:7e911c994ef2
should work on mac now
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 18 Feb 2016 23:21:49 +0200 |
parents | b469e6a72636 |
children |
line source
1 obj = refmod_test.o sdr.o
2 bin = refmod_test
3 distfile = refmod_test.tar.gz
5 CC = gcc
6 CFLAGS = -pedantic -Wall -g
7 LDFLAGS = $(libgl)
9 ifeq ($(shell uname -s), Darwin)
10 libgl = -framework OpenGL -framework GLUT -lGLEW
11 else
12 libgl = -lGL -lGLU -lglut -lGLEW
13 endif
15 $(bin): $(obj)
16 $(CC) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)
22 .PHONY: dist
23 dist: clean
24 cd ..; tar czvf $(distfile) refmod_test && mv $(distfile) refmod_test/$(distfile)