Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining @cd "$(_LIB)" && $(MAKE) residues in examples #196

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions examples/C++/call_cpp_from_js/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C++ Example (Debug Static)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi /EHsc /std:c++17 "$(_SOURCE)/main.cpp" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C++ Example (Release Static)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C++/call_cpp_from_js/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C++ Example (Static Debug)..."
@clang -std=c++17 -g -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C++ Example (Dynamic Debug)..."
@clang -std=c++17 -g -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C++ Example (Static Release)..."
@clang -std=c++17 -lstdc++ -Os -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C++ Example (Dynamic Release)..."
@clang -std=c++17 -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down
4 changes: 0 additions & 4 deletions examples/C++/call_js_from_cpp/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C++ Example (Debug Static)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi /EHsc /std:c++17 "$(_SOURCE)/main.cpp" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C++ Example (Release Static)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C++/call_js_from_cpp/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C++ Example (Static Debug)..."
@clang -std=c++17 -g -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C++ Example (Dynamic Debug)..."
@clang -std=c++17 -g -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C++ Example (Static Release)..."
@clang -std=c++17 -lstdc++ -Os -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C++ Example (Dynamic Release)..."
@clang -std=c++17 -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down
4 changes: 0 additions & 4 deletions examples/C++/minimal/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C++ Example (Debug Static)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi /EHsc /std:c++17 "$(_SOURCE)/main.cpp" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C++ Example (Release Static)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C++/minimal/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C++ Example (Static Debug)..."
@clang -std=c++17 -g -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C++ Example (Dynamic Debug)..."
@clang -std=c++17 -g -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C++ Example (Static Release)..."
@clang -std=c++17 -lstdc++ -Os -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C++ Example (Dynamic Release)..."
@clang -std=c++17 -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down
4 changes: 0 additions & 4 deletions examples/C++/serve_a_folder/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C++ Example (Debug Static)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi /EHsc /std:c++17 "$(_SOURCE)/main.cpp" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C++ Example (Release Static)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C++/serve_a_folder/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C++ Example (Static Debug)..."
@clang -std=c++17 -g -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C++ Example (Dynamic Debug)..."
@clang -std=c++17 -g -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C++ Example (Static Release)..."
@clang -std=c++17 -lstdc++ -Os -m64 -o main "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C++ Example (Dynamic Release)..."
@clang -std=c++17 -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.cpp" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down
4 changes: 0 additions & 4 deletions examples/C/call_js_from_c/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C99 Example (Static Debug)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi "$(_SOURCE)/main.c" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C99 Example (Static Release)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C/call_js_from_c/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C99 Example (Static Debug)..."
@clang -g -m64 -o main "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C99 Example (Dynamic Debug)..."
@clang -g -m64 -o main-dyn "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C99 Example (Static Release)..."
@clang -lstdc++ -Os -m64 -o main "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C99 Example (Dynamic Release)..."
@clang -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down
4 changes: 0 additions & 4 deletions examples/C/minimal/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C99 Example (Static Debug)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi "$(_SOURCE)/main.c" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C99 Example (Static Release)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C/minimal/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C99 Example (Static Debug)..."
@clang -g -m64 -o main "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C99 Example (Dynamic Debug)..."
@clang -g -m64 -o main-dyn "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C99 Example (Static Release)..."
@clang -lstdc++ -Os -m64 -o main "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C99 Example (Dynamic Release)..."
@clang -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down
4 changes: 0 additions & 4 deletions examples/C/serve_a_folder/Windows/MSVC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ _SOURCE=../../
all: release

debug:
# Build Lib
@cd "$(_LIB)" && $(MAKE) debug
# Static with Debug info
@echo Build C99 Example (Static Debug)...
@rc win.rc 1>NUL 2>&1
Expand All @@ -22,8 +20,6 @@ debug:
@cl /Zi "$(_SOURCE)/main.c" /I "$(_INCLUDE)" /link /LIBPATH:"$(_LIB)" /MACHINE:X64 /SUBSYSTEM:CONSOLE win.res webui-2.lib user32.lib Advapi32.lib /OUT:main-dyn.exe 1>NUL 2>&1

release:
# Build Lib
@cd "$(_LIB)" && $(MAKE)
# Static Release
@echo Build C99 Example (Static Release)...
@rc win.rc 1>NUL 2>&1
Expand Down
16 changes: 6 additions & 10 deletions examples/C/serve_a_folder/macOS/Clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,25 @@ SOURCE=../..
all: release

debug:
# Build Lib
@cd "$(LIB)" && $(MAKE) debug
# Static with Debug info
# Static with Debug info
@echo "Build C99 Example (Static Debug)..."
@clang -g -m64 -o main "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic with Debug info
# Dynamic with Debug info
@echo "Build C99 Example (Dynamic Debug)..."
@clang -g -m64 -o main-dyn "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."

release:
# Build Lib
@cd "$(LIB)" && $(MAKE)
# Static Release
# Static Release
@echo "Build C99 Example (Static Release)..."
@clang -lstdc++ -Os -m64 -o main "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" -lwebui-2-static -lpthread -lm
# Dynamic Release
# Dynamic Release
@echo "Build C99 Example (Dynamic Release)..."
@clang -lstdc++ -m64 -o main-dyn "$(SOURCE)/main.c" -I "$(INCLUDE)" -L "$(LIB)" "$(LIB)/webui-2.dyn" -lpthread -lm
# Clean
# Clean
@- rm -f *.o
@- rm -rf *.dSYM
@echo "Done."
Expand Down