Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /examples/boids/Makefile.in
ViewVC logotype

View of /examples/boids/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2129 - (download) (annotate)
Fri Feb 8 16:01:11 2013 UTC (6 years, 5 months ago) by lamonts
File size: 754 byte(s)
Adding the correct libraries for Mac OS 
# Makefile for flocking animation demo
#
# COPYRIGHT (c) 2012 The Diderot Project
# All rights reserved.
#

SHELL =		/bin/sh

CC =		@CC@
CPPFLAGS =	-I../util @CPPFLAGS@ @TEEM_CPPFLAGS@
CFLAGS =	@CFLAGS@ -O3

ifeq ($(shell uname),Darwin)
	LIBS =  -lm -framework OpenGL -framework GLUT 
else 
	LIBS = -lGL -lm -lglut
endif

LDFLAGS =	@LDPATHS@ @TEEM_LDFLAGS@ $(LIBS) 

DIDEROTC =		@DIDEROTC@
DIDEROTC_FLAGS =	--snapshot --namespace=BOID --disable-high-vn --disable-mid-vn --disable-low-vn  --target=c

UTIL_SRCS =		../util/util.c 

boid:		main.c boids.o $(UTIL_SRCS)
	$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) main.c boids.o $(UTIL_SRCS) $(LDFLAGS)

boids.o:	boids.diderot
	$(DIDEROTC) $(DIDEROTC_FLAGS) boids.diderot

clean:
	rm -rf boids boids.o boids.c boids.h

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0