-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-MinGW
45 lines (35 loc) · 1.76 KB
/
Makefile-MinGW
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
GCC=gcc
GCCOPTIONS=-w -O3
all: FractalLib.a Fractal3d FractalView FractalEncode FractalTransLimit #FractalShader FractalTest
FractalLib_cpp= FLBitmap.cpp FLFile.cpp FLFractal.cpp FLFractalConst.cpp FLFractalQuad.cpp FLTrans.cpp FLTransConst.cpp FLTransQuad.cpp FLVector.cpp FLDomains.cpp
FractalLib_o= $(FractalLib_cpp:.cpp=.o)
FractalLib.a: $(FractalLib_o)
ar -rvs FractalLib.a $(FractalLib_o)
Fractal3d_cpp= Fractal3d.cpp Frustum.cpp Matrix.cpp Vector.cpp Point.cpp Triangle.cpp
Fractal3d_o= $(Fractal3d_cpp:.cpp=.o)
Fractal3d: FractalLib.a $(Fractal3d_o)
$(GCC) $(GCCOPTIONS) -o Fractal3d $(Fractal3d_o) FractalLib.a -lstdc++ -lopengl32 -lglu32 -lglut32 -lz
FractalView_cpp= FractalView.cpp MarchingCubes.cpp objlib.cpp tblib.cpp
FractalView_o= $(FractalView_cpp:.cpp=.o)
FractalView: FractalLib.a $(FractalView_o)
$(GCC) $(GCCOPTIONS) -o FractalView $(FractalView_o) FractalLib.a -lstdc++ -lopengl32 -lglu32 -lglut32 -lz
FractalEncode_cpp= FractalEncode.cpp
FractalEncode_o= $(FractalEncode_cpp:.cpp=.o)
FractalEncode: FractalLib.a $(FractalEncode_o)
$(GCC) $(GCCOPTIONS) -o FractalEncode $(FractalEncode_o) FractalLib.a -lstdc++ -lz
FractalTransLimit_cpp= FractalTransLimit.cpp
FractalTransLimit_o= $(FractalTransLimit_cpp:.cpp=.o)
FractalTransLimit: $(FractalTransLimit_o)
$(GCC) $(GCCOPTIONS) -o FractalTransLimit $(FractalTransLimit_o) -lstdc++
FractalShader_cpp= main.cpp SimpleGL.cpp
FractalShader_o= $(FractalShader_cpp:.cpp=.o)
FractalShader: $(FractalShader_o)
$(GCC) $(GCCOPTIONS) -o FractalShader $(FractalShader_o) -lstdc++
FractalTest_cpp= FractalTest.cpp
FractalTest_o= $(FractalTest_cpp:.cpp=.o)
FractalTest: $(FractalTest_o)
$(GCC) $(GCCOPTIONS) -o FractalTest $(FractalTest_o) -lstdc++
%.o: %.cpp %.h
$(GCC) $(GCCOPTIONS) -c $<
%.o: %.cpp
$(GCC) $(GCCOPTIONS) -c $<