wip
This commit is contained in:
parent
76a33f9395
commit
ae7df4cb63
52 changed files with 1818 additions and 39 deletions
14
Makefile
14
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue