blob: f717953d1fc085cbfebf4a4da7cf90cb5260a08d (
plain) (
blame)
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
57
|
--- Makefile.orig 2022-03-15 23:26:07 UTC
+++ Makefile
@@ -9,15 +9,15 @@ TARGET := $(PLATFORM)
CROSSC := 1
else
# Get the compiler's (GCC or Clang) target triplet and use that as platform.
-TARGET := $(shell g++ -dumpmachine)
+# TARGET := $(shell g++ -dumpmachine)
endif
ifdef TOOLCHAIN
#include Makefile.$(TARGET)
include toolchain/$(TOOLCHAIN).mk
else
-GPP = g++
-GCC = gcc
+GPP = c++
+GCC = cc
STRIP = strip
MAKEDIR = mkdir -p
RM = rm
@@ -56,7 +56,7 @@ endif
LIB := -lnymphrpc -lPocoUtil -lPocoNet -lPocoNetSSL -lPocoJSON -lPocoData -lPocoDataSQLite \
-lPocoFoundation -lswscale -lavcodec -lavdevice -lavformat -lavutil -lpostproc \
-lswresample -lavfilter -lSDL2_image -Langelscript/angelscript/lib-$(TARGET) -langelscript \
- -lstdc++fs -lfreetype \
+ -lfreetype \
-lcurl -lfreeimage \
-lnymphcast -lPocoNet -lPocoUtil -lPocoFoundation
# -lvlc
@@ -95,7 +95,7 @@ ifdef OS
LDFLAGS += -lws2_32 -lopengl32 -lwinmm -lole32
OUTPUT := $(OUTPUT).exe
else
- LDFLAGS += -pthread -latomic -lGL -lasound
+ LDFLAGS += -pthread -lGL -lasound
endif
# Check which version of OpenGL or OpenGL ES to use.
@@ -178,7 +178,7 @@ makedir:
$(MAKEDIR) bin/$(TARGET)
angelscript:
- make -C angelscript/angelscript/projects/gnuc/ static
+ $(MAKE) -C angelscript/angelscript/projects/gnuc/ static
gui: $(GUI_OBJECTS)
@@ -199,7 +199,7 @@ clean-objects:
$(RM) $(OBJECTS) $(C_OBJECTS)
clean-angelscript:
- make -C angelscript/angelscript/projects/gnuc/ clean
+ $(MAKE) -C angelscript/angelscript/projects/gnuc/ clean
clean-gui:
$(RM) $(GUI_OBJECTS)
|