This commit is contained in:
Nishi 2026-04-16 14:27:13 +09:00
commit e324b3d118
5 changed files with 95 additions and 0 deletions

32
Makefile Normal file
View file

@ -0,0 +1,32 @@
MILSKO = ../milsko
XEMIL = ../xemil
CC = gcc
CXX = g++ -fno-rtti -fno-exceptions -std=c++98
LIB = lib
SO = .so
EXEC =
.PHONY: all clean
.SUFFIXES: .c .cxx .o
all: libMwCXX$(SO)
include objs.mk
bindgen$(EXEC): bindgen.o
$(CC) -L$(XEMIL)/lib -L$(XEMIL)/src -o $@ bindgen.o -lxemil
libMwCXX$(SO): $(OBJS)
$(CXX) -shared -L$(MILSKO)/lib -L$(MILSKO)/src -o $@ $(OBJS) -lMw
.c.o:
$(CC) -c -I$(MILSKO)/include -I$(XEMIL)/include -o $@ $<
.cxx.o:
$(CXX) -c -I$(MILSKO)/include -I$(XEMIL)/include -o $@ $<
clean:
rm -f *.so *.dll *.o *.exe bindgen.exe