File tree 6 files changed +40
-36
lines changed
6 files changed +40
-36
lines changed Original file line number Diff line number Diff line change 1
- SRCDIR = Sources
2
- SHAREDLIB = libCgRPC.so
3
1
4
- UNAME_S := $(shell uname -s)
5
- ifeq ($(UNAME_S ) ,Linux)
6
- SHAREDLIBPATH = /usr/lib
7
- endif
8
- ifeq ($(UNAME_S ) ,Darwin)
9
- SHAREDLIBPATH = /usr/local/lib
10
- endif
11
-
12
- gRPC_Core : $(SRCDIR ) /byte_buffer.c $(SRCDIR ) /call.c $(SRCDIR ) /channel.c $(SRCDIR ) /completion_queue.c $(SRCDIR ) /event.c $(SRCDIR ) /handler.c $(SRCDIR ) /internal.c $(SRCDIR ) /metadata.c $(SRCDIR ) /mutex.c $(SRCDIR ) /observers.c $(SRCDIR ) /server.c $(SRCDIR ) /operations.c
13
- clang -I../../third_party/grpc/include -shared -fPIC -o $(SHAREDLIB ) $(SRCDIR ) /byte_buffer.c $(SRCDIR ) /call.c $(SRCDIR ) /channel.c $(SRCDIR ) /completion_queue.c $(SRCDIR ) /event.c $(SRCDIR ) /handler.c $(SRCDIR ) /internal.c $(SRCDIR ) /metadata.c $(SRCDIR ) /mutex.c $(SRCDIR ) /observers.c $(SRCDIR ) /server.c $(SRCDIR ) /operations.c -lgrpc -L../../third_party/grpc/libs/opt
14
- cp $(SHAREDLIB ) $(SHAREDLIBPATH )
2
+ all :
15
3
git init ; git add . ; git commit -m " Commit" ; git tag 1.0.0
16
4
17
5
clean :
18
- -rm -f $(SHAREDLIB )
19
- -rm -f $(SHAREDLIBPATH ) /$(SHAREDLIB )
20
6
-rm -rf .git
21
7
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
TARGET =Client
2
+
3
+ UNAME := $(shell uname)
4
+
5
+ ifeq ($(UNAME ) , Darwin)
6
+ LIBDIR = ../../third_party/grpc/libs/opt
7
+ INCDIR = ../../third_party/grpc/include
8
+ endif
9
+
10
+ ifeq ($(UNAME ) , Linux)
11
+ LIBDIR = /usr/local/lib
12
+ INCDIR = /usr/local/include
13
+ endif
14
+
2
15
all :
3
- swift build -Xlinker -L/usr/local/lib
16
+ swift build -Xlinker -L../../third_party/grpc/libs/opt -Xlinker -lgrpc -Xcc -I../../third_party/grpc/include/
4
17
5
- install :
18
+ install : all
6
19
cp .build/debug/$(TARGET ) .
7
20
8
21
clean :
Original file line number Diff line number Diff line change 2
2
demo :
3
3
cd CgRPC; make clean; make; cd ..
4
4
cd gRPC; make clean; make; cd ..
5
- cd Server; make clean; make; make; make install; cd ..
6
- cd Client; make clean; make; make; make install; cd ..
7
- cd QuickProto; make clean; make; make; make install; cd ..
8
- cd EchoServer; make clean; make; make; make install; cd ..
9
- cd EchoClient; make clean; make; make; make install; cd ..
10
- EchoServer/EchoServer &
11
- EchoClient/EchoClient
5
+ cd Server; make clean; make; make install; cd ..
6
+ cd Client; make clean; make; make install; cd ..
7
+ Server/Server &
8
+ Client/Client
9
+ # cd QuickProto; make clean; make; make install; cd ..
10
+ # cd EchoServer; make clean; make; make install; cd ..
11
+ # cd EchoClient; make clean; make; make install; cd ..
12
+ # EchoServer/EchoServer &
13
+ # EchoClient/EchoClient
12
14
13
15
clean :
14
16
cd CgRPC; make clean; cd ..
Original file line number Diff line number Diff line change 1
1
TARGET =Server
2
+
3
+ UNAME := $(shell uname)
4
+
5
+ ifeq ($(UNAME ) , Darwin)
6
+ LIBDIR = ../../third_party/grpc/libs/opt
7
+ INCDIR = ../../third_party/grpc/include
8
+ endif
9
+
10
+ ifeq ($(UNAME ) , Linux)
11
+ LIBDIR = /usr/local/lib
12
+ INCDIR = /usr/local/include
13
+ endif
14
+
2
15
all :
3
- swift build -Xlinker -L/usr/local/lib
16
+ swift build -Xlinker -L../../third_party/grpc/libs/opt -Xlinker -lgrpc -Xcc -I../../third_party/grpc/include/
4
17
5
- install :
18
+ install : all
6
19
cp .build/debug/$(TARGET ) .
7
20
8
21
clean :
Original file line number Diff line number Diff line change 1
1
all :
2
- swift build -Xswiftc -D -Xswiftc SWIFT_PACKAGE
3
2
git init ; git add . ; git commit -m " Commit" ; git tag 1.0.0
4
3
5
4
clean :
6
- rm -rf .build
7
5
rm -rf .git
8
- rm -rf Packages
You can’t perform that action at this time.
0 commit comments