Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pull out platform specific Makefile details into seperate files.

  • Loading branch information...
commit f2e69745279a2e7f19c2ceeb01e9cc672febe421 1 parent 4f6bf0f
@deanm deanm authored
Showing with 5 additions and 2 deletions.
  1. +3 −2 Makefile
  2. +1 −0  Makefile.Darwin
  3. +1 −0  Makefile.Linux
View
5 Makefile 100755 → 100644
@@ -1,11 +1,12 @@
+# Pull in platform specific settings.
+include Makefile.$(firstword $(subst _, ,$(shell uname -s)))
+
CC = g++
CFLAGS = -m32 -Wall -Iv8/include
PROG = v8-gl
SRCS = main.cpp v8-gl.cpp glbindings/glbind.cpp glesbindings/glesbind.cpp glubindings/glubind.cpp glutbindings/glutbind.cpp
-LIBS = v8/libv8.a -lpthread -framework OpenGL -framework GLUT
-
all: $(PROG)
$(PROG): $(SRCS)
View
1  Makefile.Darwin
@@ -0,0 +1 @@
+LIBS = v8/libv8.a -lpthread -framework OpenGL -framework GLUT
View
1  Makefile.Linux
@@ -0,0 +1 @@
+LIBS = v8/libv8.a -lpthread -lglut -lGLU -lGL
Please sign in to comment.
Something went wrong with that request. Please try again.