Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Release 221
[ric-plt/lib/rmr.git]
/
test
/
app_test
/
Makefile
diff --git
a/test/app_test/Makefile
b/test/app_test/Makefile
index
019f3e2
..
fe4cd33
100644
(file)
--- a/
test/app_test/Makefile
+++ b/
test/app_test/Makefile
@@
-1,7
+1,7
@@
#
#=================================================================================
#
#=================================================================================
-# Copyright (c) 2019 Nokia
-# Copyright (c) 2018-20
19
AT&T Intellectual Property.
+# Copyright (c) 2019
-2020
Nokia
+# Copyright (c) 2018-20
20
AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-17,10
+17,10
@@
#==================================================================================
#
#==================================================================================
#
-# NOTE: this makefile assumes that RM
r
has been built using the directory .build
+# NOTE: this makefile assumes that RM
R
has been built using the directory .build
# at the top most repo directory (e.g. ../../.build). It can be changed
# if you need to by adding "build_path=<path>" to the make command line.
# at the top most repo directory (e.g. ../../.build). It can be changed
# if you need to by adding "build_path=<path>" to the make command line.
-# To use this makefile to build on a system where RM
r
is already installed
+# To use this makefile to build on a system where RM
R
is already installed
# try: make build_path=/usr/local/lib
#
# By default we prefer the Korn shell (it's just better). If you really need
# try: make build_path=/usr/local/lib
#
# By default we prefer the Korn shell (it's just better). If you really need
@@
-46,34
+46,33
@@
LIBRARY_PATH = $(LD_LIBRARY_PATH)
# from the perspective of two, or more, communicating processes.
# from the perspective of two, or more, communicating processes.
-.PHONY: all
+.PHONY: all
all_si
all: sender receiver caller mt_receiver v_sender ex_rts_receiver
all: sender receiver caller mt_receiver v_sender ex_rts_receiver
-receiver: receiver.c
+all_si: sender_si receiver_si
+
+
+# ------ nng based builds ------------------------------------------------------------
+
+%:%.c
gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
+# special build as it reuses an existing source module
mt_receiver: receiver.c
gcc -I $${C_INCLUDE_PATH:-.} -DMTC $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
mt_receiver: receiver.c
gcc -I $${C_INCLUDE_PATH:-.} -DMTC $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
-lreceiver: lreceiver.c
- gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
-
-ex_rts_receiver: ex_rts_receiver.c
- gcc $(ex_cflags) -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
-v_sender: v_sender.c
- gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
+# ----- si test builds -------------------------------------------------------------
-
sender: sender
.c
- gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_
nng -lnng
-lpthread -lm
+
%_si : %
.c
+ gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_
si
-lpthread -lm
-caller: caller.c
- gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
+# explicit rule because there is no mt_recever.c
+mt_receiver_si: receiver.c
+ gcc -I $${C_INCLUDE_PATH:-.} -DMTC $< -g -o $@ -lrmr_si -lpthread -lm
-lcaller: lcaller.c
- gcc -I $${C_INCLUDE_PATH:-.} $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
-lsender: lsender.c
+# --------- housekeeping -----------------------------------------------------------
# clean removes intermediates; nuke removes everything that can be built
.PHONY: clean nuke
# clean removes intermediates; nuke removes everything that can be built
.PHONY: clean nuke