mirror of
https://github.com/zhboner/realm.git
synced 2026-11-17 08:15:55 +00:00
17 lines
229 B
Makefile
17 lines
229 B
Makefile
CXX := g++
|
|
CXXFLAGS += -std=c++11
|
|
CXXFLAGS += -s -O2 -shared -fPIC
|
|
|
|
SRCS := $(wildcard *.cpp)
|
|
DYLIBS := $(SRCS:%.cpp=%.so)
|
|
|
|
all: $(DYLIBS)
|
|
|
|
$(DYLIBS): %.so: %.cpp
|
|
$(CXX) $(CXXFLAGS) $< -o $@
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm $(DYLIBS)
|