This commit is contained in:
Nishi 2026-04-16 15:01:47 +09:00
commit 76a33f9395
5 changed files with 102 additions and 41 deletions

View file

@ -1,8 +1,7 @@
MILSKO = ../milsko
XEMIL = ../xemil
CC = gcc
CXX = g++ -fno-rtti -fno-exceptions -std=c++98
CXX = g++ -std=c++98
LIB = lib
SO = .so
@ -10,21 +9,18 @@ SO = .so
EXEC =
.PHONY: all clean
.SUFFIXES: .c .cxx .o
.SUFFIXES: .cxx .o
all: libMwCXX$(SO)
include objs.mk
bindgen$(EXEC): bindgen.o
$(CC) -L$(XEMIL)/lib -L$(XEMIL)/src -o $@ bindgen.o -lxemil
$(CXX) -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 $@ $<