forked from EA31337/EA31337-classes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: Adds support for MQL4/MQL5 compilation
- Loading branch information
Showing
28 changed files
with
924 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
Oops, something went wrong.