Debian Codegraph @

examples/deprecated_library/cpp_winapi_library_tester/Makefile

raw symbols SCIP
1 # Compile using g++ for Windows. Works at least with g++ from Cygwin.
2 #
3 # Note: if you're compiling a 64-bit application,
4 # make sure that castleengine.dll is also compiled for 64-bit.
5 # You may want tc run ../../../src/deprecated_library/castleengine_compile.sh
6 # with the -Twin64 -Px86_64 options to force this (since often
7 # the default fpc compiles for Windows 32-bit).
8
9 # Do not link to castleengine.dll this way,
10 # instead use dynamic loading in ../../../src/deprecated_library/castlelib_c_loader.cpp
11 #LINKFLAGS:=-L../../../src/deprecated_library/ -lcastleengine
12
13 # Do not use -lWs2_32, instead use -mwindows following https://cygwin.com/cygwin-ug-net/programming.html
14 # This works also on 64-bit.
15 #LINKFLAGS:=-lWs2_32
16
17 LINKFLAGS:=-lopengl32
18
19 cpp_winapi_library_tester: main.cpp
20 g++ $< ../../../src/deprecated_library/castlelib_c_loader.cpp -mwindows $(LINKFLAGS) -o $@
21
22 .PHONY: run
23 run:
24 cp -f ../../../src/deprecated_library/castleengine.dll .
25 ./cpp_winapi_library_tester.exe