Skip to content

Commit

Permalink
remove Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ingangi committed Jun 1, 2020
1 parent 68e4474 commit 6ef03ad
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 643 deletions.
73 changes: 38 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,45 @@ ENGIN.create_chroutine([](void *){
You can also run the examples and see the code to learn more:

```shell
├── examples
│   ├── channel_example
│   │   ├── Makefile
│   │   └── test_channel.cpp
│   ├── chutex_example
│   │   ├── Makefile
│   │   └── test_chutex.cpp
│   ├── http_client_example
│   │   ├── Makefile
│   │   └── test_main.cpp
│   ├── Makefile
│   ├── rpc_example
│   │   ├── Makefile
│   │   ├── test_client
│   │   │   ├── Makefile
│   │   │   ├── test_client.cpp
│   │   │   ├── test_client.hpp
│   │   │   └── test_client_main.cpp
│   │   ├── test_server.cpp
│   │   ├── test_server.hpp
│   │   └── test_server_main.cpp
│   ├── sched_test
│   │   ├── Makefile
│   │   └── test_sched.cpp
│   ├── test_chroutine.cpp
│   └── timer_example
│   ├── Makefile
│   └── test_timer.cpp

$ cd examples
$ make ALLTEST

# or use cmake
├── channel_example
│   ├── CMakeLists.txt
│   └── test_channel.cpp
├── chutex_example
│   ├── CMakeLists.txt
│   └── test_chutex.cpp
├── CMakeLists.txt
├── http_client_example
│   ├── CMakeLists.txt
│   └── test_main.cpp
├── raw_tcp_client_example
│   ├── CMakeLists.txt
│   └── raw_tcp_client_example.cpp
├── rpc_example
│   ├── CMakeLists.txt
│   ├── test_client
│   │   ├── CMakeLists.txt
│   │   ├── test_client.cpp
│   │   ├── test_client.hpp
│   │   └── test_client_main.cpp
│   ├── test_server.cpp
│   ├── test_server.hpp
│   └── test_server_main.cpp
├── sched_test
│   ├── CMakeLists.txt
│   └── test_sched.cpp
├── stack_test
│   ├── CMakeLists.txt
│   └── test_stack.cpp
├── tcp_echo_server_example
│   ├── CMakeLists.txt
│   └── test_echo_server.cpp
├── test_chroutine.cpp
└── timer_example
├── CMakeLists.txt
└── test_timer.cpp

$ cd examples/build
$ cmake .
$ make
$ ./build.sh
```

## Install
Expand Down
85 changes: 0 additions & 85 deletions examples/Makefile

This file was deleted.

11 changes: 11 additions & 0 deletions examples/build/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh


SCRIPT_PWD=`cd $(dirname $0); pwd`
OUTPUT_DIR=$SCRIPT_PWD/build
echo "output to " $OUTPUT_DIR
mkdir $OUTPUT_DIR
cd $OUTPUT_DIR
echo "pwd = " `pwd`
cmake ..
make
52 changes: 0 additions & 52 deletions examples/channel_example/Makefile

This file was deleted.

52 changes: 0 additions & 52 deletions examples/chutex_example/Makefile

This file was deleted.

53 changes: 0 additions & 53 deletions examples/http_client_example/Makefile

This file was deleted.

52 changes: 0 additions & 52 deletions examples/raw_tcp_client_example/Makefile

This file was deleted.

Loading

0 comments on commit 6ef03ad

Please sign in to comment.