sdrblurtest
diff Makefile @ 0:26513fdda566
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Oct 2013 08:19:56 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Thu Oct 17 08:19:56 2013 +0300 1.3 @@ -0,0 +1,23 @@ 1.4 +src = $(wildcard src/*.cc) 1.5 +csrc = $(wildcard src/*.c) 1.6 +obj = $(src:.cc=.o) $(csrc:.c=.o) 1.7 +bin = sdrconvol 1.8 + 1.9 +CC = clang 1.10 +CXX = clang++ 1.11 +CFLAGS = -pedantic -Wall -g 1.12 +CXXFLAGS = -pedantic -Wall -g 1.13 +LDFLAGS = $(libgl) 1.14 + 1.15 +ifeq ($(shell uname -s), Darwin) 1.16 + libgl = -framework OpenGL -framework GLUT -lGLEW 1.17 +else 1.18 + libgl = -lGL -lGLU -lglut -lGLEW 1.19 +endif 1.20 + 1.21 +$(bin): $(obj) 1.22 + $(CXX) -o $@ $(obj) $(LDFLAGS) 1.23 + 1.24 +.PHONY: clean 1.25 +clean: 1.26 + rm -f $(obj) $(bin)