-
Notifications
You must be signed in to change notification settings - Fork 300
/
Makefile
56 lines (42 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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 = noisebench.vert constant.frag simplexnoise2D.frag simplexnoise3D.frag\
simplexnoise4D.frag classicnoise2D.frag classicnoise3D.frag classicnoise4D.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
EXECNAME = noisebench.exe
OUTPUTFILE = ashimanoise.log
all: $(EXECNAME)
clean:
del $(OBJ) $(EXECNAME) $(SHADERS) $(OUTPUTFILE) $(SRC)
noisebench.vert:
copy ..\common\noisebench.vert .
constant.frag:
copy ..\common\constant.frag .
simplexnoise2D.frag:
copy ..\common\simplexnoise2D.frag .
simplexnoise3D.frag:
copy ..\common\simplexnoise3D.frag .
simplexnoise4D.frag:
copy ..\common\simplexnoise4D.frag .
classicnoise2D.frag:
copy ..\common\classicnoise2D.frag .
classicnoise3D.frag:
copy ..\common\classicnoise3D.frag .
classicnoise4D.frag:
copy ..\common\classicnoise4D.frag .
$(SRC):
copy ..\common\$(SRC) .
$(OBJ): $(SRC)
$(CC) -c $(SRC) -o $(OBJ) $(CFLAGS)
$(EXECNAME): $(OBJ) $(SHADERS)
$(CC) $(OBJ) -o $(EXECNAME) $(LIBS)
run: $(EXECNAME)
./$(EXECNAME)
type $(OUTPUTFILE)