File Makefile changed (mode: 100644) (index def16cb..649b7f0) |
1 |
1 |
PROGRAM=confec |
PROGRAM=confec |
2 |
2 |
PROGRAM_DRMFREE=cave-confec |
PROGRAM_DRMFREE=cave-confec |
|
3 |
|
PROGRAM_GL2=cave-confec-gl2 |
3 |
4 |
INCLUDES=include/fworld.h include/civilian.h |
INCLUDES=include/fworld.h include/civilian.h |
4 |
5 |
# Change the value of CXXSTD depending on what is supported by your compiler. Older compilers may require c++1z |
# Change the value of CXXSTD depending on what is supported by your compiler. Older compilers may require c++1z |
5 |
6 |
CXXSTD=c++17 |
CXXSTD=c++17 |
|
... |
... |
$(PROGRAM_DRMFREE): libs.o libSDL2.a $(PROGRAM).cpp $(INCLUDES) |
67 |
68 |
# Building DRM-free version for GNU/Linux. |
# Building DRM-free version for GNU/Linux. |
68 |
69 |
$(LINCXX) $(CXXFLAGS) -static-libgcc -static-libstdc++ -O3 -D__LIGHT__ -o $@ $(PROGRAM).cpp libs.o libSDL2.a -Wl,-rpath,. -L. -ldl -pthread |
$(LINCXX) $(CXXFLAGS) -static-libgcc -static-libstdc++ -O3 -D__LIGHT__ -o $@ $(PROGRAM).cpp libs.o libSDL2.a -Wl,-rpath,. -L. -ldl -pthread |
69 |
70 |
|
|
|
71 |
|
$(PROGRAM_GL2): libs.o libSDL2.a $(PROGRAM).cpp $(INCLUDES) |
|
72 |
|
# Building DRM-free GL2 version for GNU/Linux. |
|
73 |
|
$(LINCXX) $(CXXFLAGS) -static-libgcc -static-libstdc++ -O3 -D__LIGHT__ -D__GL2__ -o $@ $(PROGRAM).cpp libs.o libSDL2.a -Wl,-rpath,. -L. -ldl -pthread |
|
74 |
|
|
70 |
75 |
#$(PROGRAM)-dynamic: libs.o libboost_system.a $(PROGRAM).cpp $(INCLUDES) |
#$(PROGRAM)-dynamic: libs.o libboost_system.a $(PROGRAM).cpp $(INCLUDES) |
71 |
76 |
$(PROGRAM)-dynamic: libs.o $(PROGRAM).cpp $(INCLUDES) |
$(PROGRAM)-dynamic: libs.o $(PROGRAM).cpp $(INCLUDES) |
72 |
77 |
$(CXXDYNAMIC) |
$(CXXDYNAMIC) |
|
... |
... |
$(PROGRAM_DRMFREE)-mac: libs-mac.o SDL2.framework libboost_filesystem.a $(PROGRA |
134 |
139 |
# Building DRM-free version for Mac. |
# Building DRM-free version for Mac. |
135 |
140 |
$(MACCXX) $(CXXFLAGS) -O3 -D__LIGHT__ -o $@ $(PROGRAM).cpp libs-mac.o -F. -L. -Wl,-rpath,"." -framework SDL2 -ldl -pthread -lboost_filesystem |
$(MACCXX) $(CXXFLAGS) -O3 -D__LIGHT__ -o $@ $(PROGRAM).cpp libs-mac.o -F. -L. -Wl,-rpath,"." -framework SDL2 -ldl -pthread -lboost_filesystem |
136 |
141 |
|
|
|
142 |
|
$(PROGRAM_GL2)-mac: libs-mac.o SDL2.framework libboost_filesystem.a $(PROGRAM).cpp $(INCLUDES) |
|
143 |
|
# Building DRM-free GL2 version for Mac. |
|
144 |
|
$(MACCXX) $(CXXFLAGS) -O3 -D__LIGHT__ -D__GL2__ -o $@ $(PROGRAM).cpp libs-mac.o -F. -L. -Wl,-rpath,"." -framework SDL2 -ldl -pthread -lboost_filesystem |
|
145 |
|
|
137 |
146 |
libs-mac.o: libs.cpp micropather.cpp include/tm_json.h $(BOOST_DIR) |
libs-mac.o: libs.cpp micropather.cpp include/tm_json.h $(BOOST_DIR) |
138 |
147 |
$(MACCXX) $(CXXFLAGS) -O3 -o $@ libs.cpp -c |
$(MACCXX) $(CXXFLAGS) -O3 -o $@ libs.cpp -c |
139 |
148 |
|
|
|
... |
... |
$(PROGRAM_DRMFREE).exe: libs-win.o $(PROGRAM).cpp $(INCLUDES) |
153 |
162 |
# Building DRM-free version for Windows. |
# Building DRM-free version for Windows. |
154 |
163 |
$(WINCXX) $(CXXFLAGS) -O3 -D__LIGHT__ -o $@ $(PROGRAM).cpp libs-win.o -L. -lmingw32 -l:SDL2.dll -l:libSDL2main.a -static -lpthread |
$(WINCXX) $(CXXFLAGS) -O3 -D__LIGHT__ -o $@ $(PROGRAM).cpp libs-win.o -L. -lmingw32 -l:SDL2.dll -l:libSDL2main.a -static -lpthread |
155 |
164 |
|
|
|
165 |
|
$(PROGRAM_GL2).exe: libs-win.o $(PROGRAM).cpp $(INCLUDES) |
|
166 |
|
# Building DRM-free GL2 version for Windows. |
|
167 |
|
$(WINCXX) $(CXXFLAGS) -O3 -D__LIGHT__ -D__GL2__ -o $@ $(PROGRAM).cpp libs-win.o -L. -lmingw32 -l:SDL2.dll -l:libSDL2main.a -static -lpthread |
|
168 |
|
|
156 |
169 |
# You get the picture. |
# You get the picture. |
157 |
170 |
#libs-win.o: include/SDL2 libSDL2main.a SDL2.dll libs.cpp micropather.cpp include/tm_json.h $(BOOST_DIR) $(OPENSSL_DIR) |
#libs-win.o: include/SDL2 libSDL2main.a SDL2.dll libs.cpp micropather.cpp include/tm_json.h $(BOOST_DIR) $(OPENSSL_DIR) |
158 |
171 |
#$(WINCXX) $(CXXFLAGS) -I$(OPENSSL_DIR)/include -O3 -o $@ libs.cpp -c |
#$(WINCXX) $(CXXFLAGS) -I$(OPENSSL_DIR)/include -O3 -o $@ libs.cpp -c |
|
... |
... |
$(OPENSSL_TAR): |
270 |
283 |
wget https://www.openssl.org/source/$(OPENSSL_TAR) |
wget https://www.openssl.org/source/$(OPENSSL_TAR) |
271 |
284 |
|
|
272 |
285 |
clean: |
clean: |
273 |
|
$(RM) debug $(PROGRAM)-static $(PROGRAM)-dynamic $(PROGRAM_DRMFREE) $(PROGRAM)-demo-static libs.o \ |
|
274 |
|
$(PROGRAM).exe $(PROGRAM_DRMFREE).exe $(PROGRAM)-demo.exe libs-win.o libs-web.o ccserver |
|
|
286 |
|
$(RM) debug $(PROGRAM)-static $(PROGRAM)-dynamic $(PROGRAM_DRMFREE) $(PROGRAM_GL2) $(PROGRAM)-demo-static libs.o \ |
|
287 |
|
$(PROGRAM).exe $(PROGRAM_DRMFREE).exe $(PROGRAM_GL2).exe $(PROGRAM)-demo.exe libs-win.o libs-web.o ccserver |