Skip to content

Commit

Permalink
tidy:1.9.5, 整理examples,使它们在install/bin/导出的文件有目录结构
Browse files Browse the repository at this point in the history
  • Loading branch information
hevake committed Jun 1, 2024
1 parent 7c4b0af commit 213fd66
Show file tree
Hide file tree
Showing 66 changed files with 122 additions and 122 deletions.
4 changes: 2 additions & 2 deletions examples/alarm/cron_alarm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/alarm/cron_alarm
EXE_NAME := cron_alarm
PROJECT := examples/alarm/cron_alarm
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/alarm/oneshot_alarm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/alarm/oneshot_alarm
EXE_NAME := oneshot_alarm
PROJECT := examples/alarm/oneshot_alarm
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/alarm/weekly_alarm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/alarm/weekly_alarm
EXE_NAME := weekly_alarm
PROJECT := examples/alarm/weekly_alarm
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/base/assert/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/base/assert
EXE_NAME := assert
PROJECT := examples/base/assert
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/base/object_pool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/base/object_pool
EXE_NAME := object_pool
PROJECT := examples/base/object_pool
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/base/print_log/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/base/print_log
EXE_NAME := $(PROJECT)
PROJECT := examples/base/print_log
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp
C_SRC_FILES := other.c
Expand Down
4 changes: 2 additions & 2 deletions examples/dbus/00-loop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/dbus/00-loop
EXE_NAME := dbus/00-loop
PROJECT := examples/dbus/00-loop
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/01_io/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/01_io
EXE_NAME := 01_io
PROJECT := examples/event/01_io
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/02_timer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/02_timer
EXE_NAME := 02_timer
PROJECT := examples/event/02_timer
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/03_signal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/03_signal
EXE_NAME := 03_signal
PROJECT := examples/event/03_signal
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/04_run_in_loop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/04_run_in_loop
EXE_NAME := 04_run_in_loop
PROJECT := examples/event/04_run_in_loop
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/05_run_next_seq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/05_run_next_seq
EXE_NAME := 05_run_next_seq
PROJECT := examples/event/05_run_next_seq
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/06_stdin_timer_signal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/06_stdin_timer_signal
EXE_NAME := 06_stdin_timer_signal
PROJECT := examples/event/06_stdin_timer_signal
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/07_delay_delete/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/07_delay_delete
EXE_NAME := 07_delay_delete
PROJECT := examples/event/07_delay_delete
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/event/08_calc_game/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/08_calc_game
EXE_NAME := 08_calc_game
PROJECT := examples/event/08_calc_game
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := \
main.cpp \
Expand Down
4 changes: 2 additions & 2 deletions examples/event/09_named_pipe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/event/09_named_pipe
EXE_NAME := 09_named_pipe
PROJECT := examples/event/09_named_pipe
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/eventx/thread_pool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/eventx/thread_pool
EXE_NAME := thread_pool
PROJECT := examples/eventx/thread_pool
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/eventx/timer_fd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/eventx/timer_fd
EXE_NAME := timer_fd
PROJECT := examples/eventx/timer_fd
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := main.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/http/server/async_respond/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/http/server/async_respond
EXE_NAME := async_respond
PROJECT := examples/http/server/async_respond
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := async_respond.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/http/server/router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/http/server/router
EXE_NAME := router
PROJECT := examples/http/server/router
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := router.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/http/server/simple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/http/server/simple
EXE_NAME := simple
PROJECT := examples/http/server/simple
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := simple.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/jsonrpc/message/ping/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/jsonrpc/message/ping
EXE_NAME := jsonrpc/message/ping
PROJECT := examples/jsonrpc/message/ping
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := ping.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/jsonrpc/message/pong/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/jsonrpc/message/pong
EXE_NAME := jsonrpc/message/pong
PROJECT := examples/jsonrpc/message/pong
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := pong.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/jsonrpc/req_rsp/ping/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/jsonrpc/req_rsp/ping
EXE_NAME := jsonrpc/req_rsp/ping
PROJECT := examples/jsonrpc/req_rsp/ping
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := ping.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/jsonrpc/req_rsp/pong/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/jsonrpc/req_rsp/pong
EXE_NAME := jsonrpc/req_rsp/pong
PROJECT := examples/jsonrpc/req_rsp/pong
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := pong.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/main/00_empty/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/00_empty
EXE_NAME := 00_empty
PROJECT := examples/main/00_empty
EXE_NAME := ${PROJECT}

CXXFLAGS := -DLOG_MODULE_ID='"$(EXE_NAME)"' $(CXXFLAGS)
LDFLAGS += \
Expand Down
4 changes: 2 additions & 2 deletions examples/main/01_one_app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/01_one_app
EXE_NAME := 01_one_app
PROJECT := examples/main/01_one_app
EXE_NAME := ${PROJECT}

CPP_SRC_FILES = \
app.cpp \
Expand Down
4 changes: 2 additions & 2 deletions examples/main/02_more_than_one_apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/02_more_than_one_apps
EXE_NAME := 02_more_than_one_apps
PROJECT := examples/main/02_more_than_one_apps
EXE_NAME := ${PROJECT}

CPP_SRC_FILES = \
main.cpp \
Expand Down
4 changes: 2 additions & 2 deletions examples/main/03_nc_client_and_echo_server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/03_nc_client_and_echo_server
EXE_NAME := 03_nc_client_and_echo_server
PROJECT := examples/main/03_nc_client_and_echo_server
EXE_NAME := ${PROJECT}

CPP_SRC_FILES = \
main.cpp \
Expand Down
4 changes: 2 additions & 2 deletions examples/main/04_runtime_error/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/04_runtime_error
EXE_NAME := 04_runtime_error
PROJECT := examples/main/04_runtime_error
EXE_NAME := ${PROJECT}

CPP_SRC_FILES = \
main.cpp \
Expand Down
4 changes: 2 additions & 2 deletions examples/main/06_run_in_backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/06_run_in_backend
EXE_NAME := 06_run_in_backend
PROJECT := examples/main/06_run_in_backend
EXE_NAME := ${PROJECT}

CPP_SRC_FILES = \
app.cpp \
Expand Down
4 changes: 2 additions & 2 deletions examples/main/sample/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/main/sample
EXE_NAME := sample
PROJECT := examples/main/sample
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := app_main.cpp build_time.cpp
TEST_CPP_SRC_FILES :=
Expand Down
4 changes: 2 additions & 2 deletions examples/mqtt/conn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/mqtt/conn
EXE_NAME := conn
PROJECT := examples/mqtt/conn
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := conn.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/mqtt/pub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/mqtt/pub
EXE_NAME := pub
PROJECT := examples/mqtt/pub
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := pub.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/mqtt/sub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/mqtt/sub
EXE_NAME := sub
PROJECT := examples/mqtt/sub
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := sub.cpp

Expand Down
4 changes: 2 additions & 2 deletions examples/network/buffered_fd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# of the source tree.
#

PROJECT := example/network/buffered_fd/01-io-echo
EXE_NAME := 01-io-echo
PROJECT := examples/network/buffered_fd/01-io-echo
EXE_NAME := ${PROJECT}

CPP_SRC_FILES := io_echo.cpp

Expand Down
Loading

0 comments on commit 213fd66

Please sign in to comment.