This commit is contained in:
Nishi 2026-04-17 19:42:14 +09:00
commit ae7df4cb63
Signed by: nishi
GPG key ID: 27EF69B208EB9343
52 changed files with 1818 additions and 39 deletions

View file

@ -1,20 +1,26 @@
MILSKO = ../milsko
XEMIL = ../xemil
CXX = g++ -std=c++98
CXX = g++
LIB = lib
SO = .so
EXEC =
.PHONY: all clean
.PHONY: all format clean
.SUFFIXES: .cxx .o
all: libMwCXX$(SO)
format:
clang-format --verbose -i `find . -name "*.cxx" -or -name "*.h"`
OBJS = src/core.o src/widget/base.o
include objs.mk
src/widget/base.o: src/widget/base.cxx src/widget/baseauto.cxx
bindgen$(EXEC): bindgen.o
$(CXX) -L$(XEMIL)/lib -L$(XEMIL)/src -o $@ bindgen.o -lxemil
@ -22,7 +28,7 @@ libMwCXX$(SO): $(OBJS)
$(CXX) -shared -L$(MILSKO)/lib -L$(MILSKO)/src -o $@ $(OBJS) -lMw
.cxx.o:
$(CXX) -c -I$(MILSKO)/include -I$(XEMIL)/include -o $@ $<
$(CXX) -fPIC -c -Iinclude -I$(MILSKO)/include -I$(XEMIL)/include -o $@ $<
clean:
rm -f *.so *.dll *.o *.exe bindgen.exe
rm -f *.so *.dll *.o */*.o */*/*.o *.exe bindgen.exe