32 lines
559 B
Makefile
32 lines
559 B
Makefile
|
|
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
|