git.haldean.org ana / 1574bfe
linux build haldean 8 months ago
2 changed file(s) with 15 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
22 *.d
33 *.gen.cpp
44 imgui.ini
5 *.exe
2525 CXXFLAGS += -MD
2626 CXXFLAGS += -ggdb
2727
28 ifdef OS
29 # Windows
2830 LDFLAGS += lib\glew-2.1.0\lib\Release\x64\glew32.lib
2931 LDFLAGS += lib\glfw-3.2.1.bin.WIN64\lib-mingw-w64\libglfw3.a
3032 LDFLAGS += -lopengl32
3335 LDFLAGS += -lshell32
3436 LDFLAGS += -ggdb
3537
38 build/glew32.dll: lib/glew-2.1.0/bin/Release/x64/glew32.dll build
39 cp $< $@
40
3641 dist: build/ana.exe build/glew32.dll
42
43 else
44 # Not-windows
45 LDFLAGS += -lglfw
46 LDFLAGS += -lGLEW
47 LDFLAGS += -lGL
48
49 dist: build/ana.exe
50 endif
3751
3852 build:
3953 mkdir build
40
41 build/glew32.dll: lib/glew-2.1.0/bin/Release/x64/glew32.dll build
42 cp $< $@
4354
4455 build/ana.exe: $(objects) build
4556 $(CXX) $(objects) $(LDFLAGS) -o $@