Added Makefile (duh)

master
stegu 2011-03-24 17:02:54 +01:00
parent 940abb8675
commit d3237ac132
1 changed files with 46 additions and 0 deletions

46
benchmark/Win32/Makefile Normal file
View File

@ -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)