diff options
author | Hans Nilsson <hans@erlang.org> | 2019-12-04 17:30:42 +0100 |
---|---|---|
committer | Hans Nilsson <hans@erlang.org> | 2020-02-12 09:57:47 +0100 |
commit | 83171f4af9b8eef64714d14ddb3fa6f8f4f4153c (patch) | |
tree | bd879ee2dc7ce06860856ae023a79f49bd1b3b80 /lib/ssh/src/Makefile | |
parent | 5a4a97ccde5ada9fb18a3ad63e9458410477e12c (diff) | |
download | erlang-83171f4af9b8eef64714d14ddb3fa6f8f4f4153c.tar.gz |
ssh: Make ssh_dbg a behaviour
Diffstat (limited to 'lib/ssh/src/Makefile')
-rw-r--r-- | lib/ssh/src/Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile index 9627b70eeb..f5c520f2f0 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile @@ -39,7 +39,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/ssh-$(VSN) # Behaviour (api) modules are first so they are compiled when # the compiler reaches a callback module using them. -BEHAVIOUR_MODULES= \ +# The $(BEHAVIOUR_MODULES_1) has a behaviour used in one or more +# of the $(BEHAVIOUR_MODULES_2) + +BEHAVIOUR_MODULES_1= \ + ssh_dbg + +BEHAVIOUR_MODULES_2= \ ssh_client_key_api \ ssh_daemon_channel \ ssh_server_channel \ @@ -59,7 +65,6 @@ MODULES= \ ssh_connection \ ssh_connection_handler \ ssh_connection_sup \ - ssh_dbg \ ssh_file \ ssh_info \ ssh_io \ @@ -83,12 +88,15 @@ HRL_FILES = ERL_FILES= \ $(MODULES:%=%.erl) \ - $(BEHAVIOUR_MODULES:%=%.erl) + $(BEHAVIOUR_MODULES_1:%=%.erl) \ + $(BEHAVIOUR_MODULES_2:%=%.erl) TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) -BEHAVIOUR_TARGET_FILES= $(BEHAVIOUR_MODULES:%=$(EBIN)/%.$(EMULATOR)) +BEHAVIOUR_TARGET_FILES_1= $(BEHAVIOUR_MODULES_1:%=$(EBIN)/%.$(EMULATOR)) +BEHAVIOUR_TARGET_FILES_2= $(BEHAVIOUR_MODULES_2:%=$(EBIN)/%.$(EMULATOR)) +BEHAVIOUR_TARGET_FILES= $(BEHAVIOUR_TARGET_FILES_1) $(BEHAVIOUR_TARGET_FILES_2) APP_FILE= ssh.app APPUP_FILE= ssh.appup @@ -115,7 +123,8 @@ ERL_COMPILE_FLAGS += -I$(ERL_TOP)/lib/kernel/src \ # Targets # ---------------------------------------------------- -$(TARGET_FILES): $(BEHAVIOUR_TARGET_FILES) +$(TARGET_FILES): $(BEHAVIOUR_TARGET_FILES_2) +$(BEHAVIOUR_TARGET_FILES_2): $(BEHAVIOUR_TARGET_FILES_1) debug opt: $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) |