21 lines
669 B
Makefile
21 lines
669 B
Makefile
CXX = em++
|
|
OUTPUT = spsGUI.js
|
|
IMGUI_DIR = imgui
|
|
|
|
SOURCES = spsGUI.cpp
|
|
SOURCES += implot/implot.cpp implot/implot_items.cpp
|
|
SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp
|
|
SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_widgets.cpp $(IMGUI_DIR)/imgui_tables.cpp
|
|
|
|
LIBS = -lGL
|
|
WEBGL_VER = -s USE_WEBGL2=1 -s USE_GLFW=3 -s FULL_ES3=1
|
|
USE_WASM = -s WASM=1
|
|
|
|
all: $(SOURCES) $(OUTPUT)
|
|
|
|
$(OUTPUT): $(SOURCES)
|
|
$(CXX) $(SOURCES) -std=c++11 -o $(OUTPUT) $(LIBS) $(WEBGL_VER) -O2 $(USE_WASM) -Iimplot -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends
|
|
|
|
clean:
|
|
rm -f $(OUTPUT)
|