mwcxx/Makefile

28 lines
457 B
Makefile
Raw Normal View History

2026-04-16 14:27:13 +09:00
MILSKO = ../milsko
XEMIL = ../xemil
2026-04-16 15:01:47 +09:00
CXX = g++ -std=c++98
2026-04-16 14:27:13 +09:00
LIB = lib
SO = .so
EXEC =
.PHONY: all clean
2026-04-16 15:01:47 +09:00
.SUFFIXES: .cxx .o
2026-04-16 14:27:13 +09:00
all: libMwCXX$(SO)
include objs.mk
bindgen$(EXEC): bindgen.o
2026-04-16 15:01:47 +09:00
$(CXX) -L$(XEMIL)/lib -L$(XEMIL)/src -o $@ bindgen.o -lxemil
2026-04-16 14:27:13 +09:00
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 $@ $<
clean:
rm -f *.so *.dll *.o *.exe bindgen.exe