Mercurial > hg > Members > kent > N-BodyProblem
comparison Makefile @ 0:249965d0a68f
GL is no finish.
author | kent |
---|---|
date | Thu, 29 May 2008 19:35:24 +0900 |
parents | |
children | 01290d71ef9c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:249965d0a68f |
---|---|
1 | |
2 CbCC = ~/work/cvs_tmp/CbC_project/build-dir/INSTALL-DIR/bin/gcc | |
3 .SUFFIXES: .cbc .o | |
4 | |
5 CFLAGS = -Wall -g -O2 | |
6 INCLUDES = `sdl-config --cflags` | |
7 LIBS = `sdl-config --libs` | |
8 | |
9 GL_LIBS = -Wl,-framework,OpenGL | |
10 | |
11 TARGETS = main main_GL | |
12 | |
13 %.o: %.c | |
14 | |
15 all: $(TARGETS) | |
16 | |
17 .cbc.o: | |
18 $(CbCC) -c $(INCLUDES) $(CFLAGS) $^ -o $@ | |
19 | |
20 main: main.o | |
21 $(CbCC) $(LIBS) $(CFLAGS) $^ -o $@ | |
22 main_GL: main_GL.o | |
23 $(CbCC) $(LIBS) $(GL_LIBS) $(CFLAGS) $^ -o $@ | |
24 | |
25 clean: | |
26 rm -f *.o *.s $(TARGETS) | |
27 |