/
Makefile.targets
97 lines (72 loc) · 3.19 KB
/
Makefile.targets
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
86
87
88
89
90
91
92
93
94
95
96
97
# Shared Mmakefile for specifying different Umm targets
# TODO: Think this is technically a bug, happens to work because included by a dir 2 down.
-include ../../Makefile.common
-include $(EXTDIR)/Makefile
TARGET ?= nodejsAction # Default target
.PHONY: nodejs nodejsAction solo5-abort solo5-blk solo5-exception solo5-globals solo5-hello solo5-ping solo5-quiet solo5-time
#For all tests:
#copy in the target binary named simply as 'target'
# RUMP TARGETS
RUMPHELLOER=$(RUMP_DIR)/tests/hello/hello.c
RUMPNOP=$(RUMP_DIR)/tests/nop/nop.c
RUMPSIMPLEHELLOER=$(RUMP_DIR)/tests/hello/simplehello.c
RUMPHELLOERPP=$(RUMP_DIR)/tests/hello/hellopp.cc
# nodejsAction
NODEJSACTIONDIR ?= $(EXT_PATH)/incubator-openwhisk-runtime-nodejs/core
NODEJSACTIONFS = $(NODEJSACTIONDIR)/nodejsAction.fs
NODEJSACTIONMODULES = $(NODEJSACTIONDIR)/nodejsActionBase/node_modules
$(NODEJSACTIONMODULES):
$(CD) $(NODEJSACTIONDIR)/nodejsActionBase && npm install --production
$(NODEJSACTIONFS): $(NODEJSACTIONMODULES)
$(CD) $(NODEJSACTIONDIR) && $(RUMP_COOKFS) nodejsAction.fs nodejsActionBase
nodejsAction: $(NODEJSACTIONFS) $(NODEJS_BIN)
$(RUMP_BAKE) -m "add $(NODEJSACTIONFS)" solo5_ukvm_net target $(NODEJS_BIN)
# C helloer with a 1 sec wait.
rump-hello: rumprun
$(RUMPRUN_CC) $(RUMPRUN_CFLAGS) $(RUMPHELLOER) -o $< $(RUMPRUN_LDLIBS)
$(RUMP_BAKE) solo5_ukvm_net target $<
$(RM) $<
rump-nop: rumprun
$(RUMPRUN_CC) $(RUMPRUN_CFLAGS) $(RUMPNOP) -o $< $(RUMPRUN_LDLIBS)
$(RUMP_BAKE) solo5_ukvm_net target $<
$(RM) $<
# C helloer with no wait.
rump-simple-hello: rumprun
$(RUMPRUN_CC) $(RUMPRUN_CFLAGS) $(RUMPSIMPLEHELLOER) -o $< $(RUMPRUN_LDLIBS)
$(RUMP_BAKE) solo5_ukvm_net target $<
$(RM) $<
# C++ helloer.
rump-hellopp: rumprun
$(RUMPRUN_CXX) $(RUMPRUN_CXXFLAGS) $(RUMPHELLOERPP) -o $< $(RUMPRUN_LDLIBS)
$(RUMP_BAKE) solo5_ukvm_net target $<
$(RM) $<
nodejs: $(NODEJS_BIN)
$(RUMP_BAKE) solo5_ukvm_net target $<
# SOLO5 TARGETS
solo5-abort: $(SOLO5_OBJ) # Success
$(INSTALL) -m 664 -D $(SOLO5_ABRT) target
solo5-blk: $(SOLO5_OBJ) # Success
$(INSTALL) -m 664 -D $(SOLO5_BLK) target
solo5-exception: $(SOLO5_OBJ) # EbbRT crashes - page fault
$(INSTALL) -m 664 -D $(SOLO5_EXC) target
solo5-globals: $(SOLO5_OBJ) # Success
$(INSTALL) -m 664 -D $(SOLO5_GLB) target
solo5-hello: $(SOLO5_OBJ) # Success
$(INSTALL) -m 664 -D $(SOLO5_HW) target
solo5-nop: $(SOLO5_OBJ) # Success
$(INSTALL) -m 664 -D $(SOLO5_NOP) target
solo5-ping: $(SOLO5_OBJ) # Failed - command line error
$(INSTALL) -m 664 -D $(SOLO5_PING) target
solo5-quiet: $(SOLO5_OBJ) # Success
$(INSTALL) -m 664 -D $(SOLO5_QUIET) target
solo5-time: $(SOLO5_OBJ) # Failed - unknown
$(INSTALL) -m 664 -D $(SOLO5_TIME) target
SOLO5_ABRT ?= $(SOLO5_DIR)/tests/test_abort/test_abort.ebbrt
SOLO5_BLK ?= $(SOLO5_DIR)/tests/test_blk/test_blk.ebbrt
SOLO5_EXC ?= $(SOLO5_DIR)/tests/test_exception/test_exception.ebbrt
SOLO5_GLB ?= $(SOLO5_DIR)/tests/test_globals/test_globals.ebbrt
SOLO5_HW ?= $(SOLO5_DIR)/tests/test_hello/test_hello.ebbrt
SOLO5_NOP ?= $(SOLO5_DIR)/tests/test_nop/test_nop.ebbrt
SOLO5_PING ?= $(SOLO5_DIR)/tests/test_ping_serve/test_ping_serve.ebbrt
SOLO5_QUIET ?= $(SOLO5_DIR)/tests/test_quiet/test_quiet.ebbrt
SOLO5_TIME ?= $(SOLO5_DIR)/tests/test_time/test_time.ebbrt