Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] View of /src/opengl/Makefile.in
ViewVC logotype

View of /src/opengl/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log

Revision 189 - (download) (annotate)
Mon Jun 9 20:29:38 2008 UTC (11 years, 5 months ago) by jhr
File size: 622 byte(s)
  Generate aliases for the various OpenGL types (e.g., GLenum.word is the
  type of OpenGL enumerations).  This change should make it easier to port
  to 64-bit systems down the road.
# Makefile for OpenGL library
# COPYRIGHT (c) 2008 John Reppy (http://www.cs.uchicago.edu/~jhr)
# All rights reserved.
# @configure_input@

SHELL = 	/bin/sh
OS =		$(shell uname -s)


ifeq ($(OS),Darwin)
  FRAMEWORKS = -framework OpenGL

.PHONY:		gl-config
gl-config:	gl-types.sml

.PHONY:		typecheck
typecheck:	gl-types.sml opengl.mlb
	$(MLTON) -stop tc opengl.mlb

gl-types.sml:	gen-gl-types
	./gen-gl-types > gl-types.sml

gen-gl-types:	gen-gl-types.c
	$(CC) $(FRAMEWORKS) -o gen-gl-types gen-gl-types.c

.PHONY:		clean distclean
	rm -rf gen-gl-types

	rm -rf gl-types.sml

ViewVC Help
Powered by ViewVC 1.0.0