Pārlūkot izejas kodu

Merge pull request #242 from touilleMan/correct-makefile-args

Fix Makefile platform and bits arguments passing to scons
Thomas Herzog 6 gadi atpakaļ
vecāks
revīzija
422140dd61
1 mainītis faili ar 10 papildinājumiem un 11 dzēšanām
  1. 10 11
      Makefile

+ 10 - 11
Makefile

@@ -1,13 +1,12 @@
 GENERATE_BINDINGS = no
 HEADERS = godot_headers
 TARGET = debug
-NAME = godot-cpp
 USE_CLANG = no
 
-BASE = scons n=$(NAME) use_llvm=$(USE_CLANG) generate_bindings=$(GENERATE_BINDINGS) target=$(TARGET) headers=$(HEADERS) -j4
-LINUX = $(BASE) p=linux
-WINDOWS = $(BASE) p=windows
-OSX = $(BASE) p=osx
+BASE = scons use_llvm=$(USE_CLANG) generate_bindings=$(GENERATE_BINDINGS) target=$(TARGET) headers=$(HEADERS) -j4
+LINUX = $(BASE) platform=linux
+WINDOWS = $(BASE) platform=windows
+OSX = $(BASE) platform=osx
 
 
 all:
@@ -20,10 +19,10 @@ linux:
 	make linux64
 
 linux32: SConstruct
-	$(LINUX) a=32
+	$(LINUX) bits=32
 
 linux64: SConstruct
-	$(LINUX) a=64
+	$(LINUX) bits=64
 
 
 windows:
@@ -31,10 +30,10 @@ windows:
 	make windows64
 
 windows32: SConstruct
-	$(WINDOWS) a=32
+	$(WINDOWS) bits=32
 
 windows64: SConstruct
-	$(WINDOWS) a=64
+	$(WINDOWS) bits=64
 
 
 osx:
@@ -42,7 +41,7 @@ osx:
 	make osx64
 
 osx32: SConstruct
-	$(OSX) a=32
+	$(OSX) bits=32
 
 osx64: SConstruct
-	$(OSX) a=64
+	$(OSX) bits=64