forked from odysseus654/node-win32ole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (69 loc) · 2.47 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# nmake build
# nmake /a test
# nmake clean
# When using -g installed node-gyp
#GYP = node-gyp
# When using node.js-bundled node-gyp
GYP = node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js"
PSRC = src
HEADS_ = $(PSRC)/node_win32ole.h
HEADS0 = $(HEADS_) $(PSRC)/ole32core.h
HEADSA = $(HEADS0) $(PSRC)/v8variant.h $(PSRC)/client.h
SRCS_ = $(PSRC)/force_gc_extension.cc $(PSRC)/force_gc_internal.cc
SRCS0 = $(PSRC)/node_win32ole.cc $(PSRC)/win32ole_gettimeofday.cc
SRCS1 = $(PSRC)/client.cc $(PSRC)/v8variant.cc $(PSRC)/ole32core.cpp
SRCSA = $(SRCS_) $(SRCS0) $(SRCS1)
POBJ = build/Release/obj/node_win32ole
OBJS_ = $(POBJ)/force_gc_extension.obj $(POBJ)/force_gc_internal.obj
OBJS0 = $(POBJ)/node_win32ole.obj $(POBJ)/win32ole_gettimeofday.obj
OBJS1 = $(POBJ)/client.obj $(POBJ)/v8variant.obj $(POBJ)/ole32core.obj
OBJSA = $(OBJS_) $(OBJS0) $(OBJS1)
PTGT = build/Release
PCNF = build
TARGET = $(PTGT)/node_win32ole.node
$(TARGET) : $(PCNF)/config.gypi # $(OBJSA)
$(GYP) rebuild
$(PCNF)/config.gypi : $(SRCSA) $(HEADSA)
$(GYP) configure
$(POBJ)/node_win32ole.obj : $(PSRC)/$(*B).cc $(PSRC)/$(*B).h $(PSRC)/client.h $(PSRC)/v8variant.h
$(GYP) rebuild
$(POBJ)/win32ole_gettimeofday.obj : $(PSRC)/$(*B).cc $(HEADS0)
$(GYP) rebuild
$(POBJ)/force_gc_extension.obj : $(PSRC)/$(*B).cc $(HEADS_)
$(GYP) rebuild
$(POBJ)/force_gc_internal.obj : $(PSRC)/$(*B).cc $(HEADS_)
$(GYP) rebuild
$(POBJ)/client.obj : $(PSRC)/$(*B).cc $(PSRC)/$(*B).h $(HEADS0) $(PSRC)/v8variant.h
$(GYP) rebuild
$(POBJ)/v8variant.obj : $(PSRC)/$(*B).cc $(PSRC)/$(*B).h $(HEADS0)
$(GYP) rebuild
$(POBJ)/ole32core.obj : $(PSRC)/$(*B).cpp $(PSRC)/$(*B).h
$(GYP) rebuild
build: # $(TARGET)
$(GYP) configure
$(GYP) build
if exist test\tmp del /Q /S test\tmp\*.*
if not exist test\tmp mkdir test\tmp
clean:
$(GYP) clean
if exist test\tmp del /Q /S test\tmp\*.*
if not exist test\tmp mkdir test\tmp
test: build
if exist test\tmp del /Q /S test\tmp\*.*
if not exist test\tmp mkdir test\tmp
set NODE_PATH=./lib;$(NODE_PATH)
mocha -I lib test/init_win32ole.test
mocha -I lib test/unicode.test
node examples/maze_creator.js
node examples/maze_solver.js
node examples/word_sample.js
node examples/access_mdb_sample.js
node examples/outlook_sample.js
node examples/ie_sample.js
node examples/typelibrary_sample.js
node examples/uncfinder_sample.js
node examples/activex_filesystemobject_sample.js
node examples/wmi_sample.js
node examples/wsh_sample.js
all: build test
.PHONY: build test clean