oops
This commit is contained in:
parent
e324b3d118
commit
76a33f9395
5 changed files with 102 additions and 41 deletions
10
Makefile
10
Makefile
|
|
@ -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 $@ $<
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue