Skip to content
Browse files

Added Makefile (duh)

  • Loading branch information...
1 parent 940abb8 commit d3237ac1329218c5e8fc56197e03f106a5f1ac8e stegu committed
Showing with 46 additions and 0 deletions.
  1. +46 −0 benchmark/Win32/Makefile
View
46 benchmark/Win32/Makefile
@@ -0,0 +1,46 @@
+# Makefile for bare-bones Mingw32 from a Windows command shell (no bash, no Cygwin)
+MINGW32 = C:/Dev-Cpp
+#MINGW32 = C:/mingw
+CC = gcc.exe
+SRC = noisebench.c
+SHADERS = GLSL-ashimanoise.vert GLSL-ashimanoise2D.frag GLSL-ashimanoise3D.frag GLSL-ashimanoise4D.frag
+OBJ = noisebench.o
+LINKOBJ = noisebench.o
+LIBS = -L$(MINGW32)/lib -mwindows -lglfw -lopengl32 -lglu32 -mconsole -g3
+INCS = -I. -I$(MINGW32)/include
+CFLAGS = $(INCS) -Wall -O3 -ffast-math -g3
+RM = del
+CP = copy
+CAT = type
+EXECNAME = noisebench.exe
+OUTPUTFILE = ashimanoise.log
+
+all: $(EXECNAME)
+
+clean:
+ ${RM} $(OBJ) $(EXECNAME) $(SHADERS) $(OUTPUTFILE) $(SRC)
+
+GLSL-ashimanoise.vert:
+ ${CP} ..\common\GLSL-ashimanoise.vert .
+
+GLSL-ashimanoise2D.frag:
+ ${CP} ..\common\GLSL-ashimanoise2D.frag .
+
+GLSL-ashimanoise3D.frag:
+ ${CP} ..\common\GLSL-ashimanoise3D.frag .
+
+GLSL-ashimanoise4D.frag:
+ ${CP} ..\common\GLSL-ashimanoise4D.frag .
+
+$(SRC):
+ ${CP} ..\common\$(SRC) .
+
+$(OBJ): $(SRC)
+ $(CC) -c $(SRC) -o $(OBJ) $(CFLAGS)
+
+$(EXECNAME): $(OBJ) $(SHADERS)
+ $(CC) $(OBJ) -o $(EXECNAME) $(LIBS)
+
+run: $(EXECNAME)
+ ./$(EXECNAME)
+ $(CAT) $(OUTPUTFILE)

0 comments on commit d3237ac

Please sign in to comment.
Something went wrong with that request. Please try again.