-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (22 loc) · 802 Bytes
/
Makefile
File metadata and controls
35 lines (22 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
KIRIKIRI_DIR = ../../kr2_228/kirikiri2
KIRIKIRI_OPT = -nosel -debug -forcelog=clear -logerror=clear
KIRIKIRI = $(KIRIKIRI_DIR)/krkr.exe
TARGET = testbind.dll
OBJS = ../tp_stub.o ncbind.o testbind.o
CXXFLAGS += -O2 -I.. -DDEBUG -Wall -Wno-unused-parameter
all: $(TARGET)
$(TARGET): $(OBJS)
dllwrap -k -def ncbind.def --driver-name $(CXX) -o $@ $(OBJS)
strip $@
ncbind.hpp: ncb_invoke.hpp ncb_foreach.h
ncbind.o: ncbind.cpp ncbind.hpp
testbind.o: testbind.cpp ncbind.hpp
clean:
rm -f $(TARGET) $(OBJS)
KRKR_PLUGINS = ../../../../bin/win32/plugin/
KRKR_EXE = ../../../../bin/win32/krkr.exe
TEST_DIR = ../../../../tests/ncbind
KRKR_OPT = -debug "`pwd -W`/$(TEST_DIR)"
test: $(TARGET)
cp $(TARGET) $(KRKR_PLUGINS)
$(KRKR_EXE) $(KRKR_OPT)