refmod_test

annotate 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
rev   line source
nuclear@0 1 obj = refmod_test.o sdr.o
nuclear@0 2 bin = refmod_test
nuclear@0 3 distfile = refmod_test.tar.gz
nuclear@0 4
nuclear@0 5 CC = gcc
nuclear@0 6 CFLAGS = -pedantic -Wall -g
nuclear@1 7 LDFLAGS = $(libgl)
nuclear@1 8
nuclear@1 9 ifeq ($(shell uname -s), Darwin)
nuclear@1 10 libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@1 11 else
nuclear@1 12 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@1 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)
nuclear@0 21
nuclear@0 22 .PHONY: dist
nuclear@0 23 dist: clean
nuclear@0 24 cd ..; tar czvf $(distfile) refmod_test && mv $(distfile) refmod_test/$(distfile)