diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-25 19:05:30 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-25 19:05:30 -0500 |
commit | 84ba3607bf4b87e2f872e960c957d7d860acd83d (patch) | |
tree | a4d5e92b2b88edd9c325ada62bf6d60948459529 /makefile | |
parent | 2f0a9c87bd5acd8fc0852f599599d031cde44bbe (diff) | |
download | wg2nd-84ba3607bf4b87e2f872e960c957d7d860acd83d.tar.xz wg2nd-84ba3607bf4b87e2f872e960c957d7d860acd83d.zip |
Rename project wg2sd -> wg2nd, new CLI + generate
1. Renamed the project from wg2sd to wg2nd
2. Modified the _gen_netdev_cfg() function to handle the MTUBytes field.
3. Add new CLI with `generate` and `install` commands
4. Modified the gen_systemd_config() function to accept keyfile_or_output_path and filename parameters.
- user can choose the name of the keyfile on the CLI
- user can choose alternative output filename (instead of just using
the interface name)
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ DEBUGFLAGS = -ggdb -O0 LDFLAGS = -largon2 # Object files -OBJECTS := wg2sd.o +OBJECTS := wg2nd.o OBJECTS += main.o # Source directory @@ -41,7 +41,7 @@ OBJ_DIR = obj DEBUG_OBJ_DIR = obj/debug # Target executable -CMD = wg2sd +CMD = wg2nd # Build rules all: CXXFLAGS += $(RELEASE_CXXFLAGS) @@ -62,7 +62,7 @@ $(CMD): $(addprefix $(OBJ_DIR)/, $(OBJECTS)) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR) $(CXX) $(CXXFLAGS) -c $< -o $@ -$(TEST_DIR)/%: $(TEST_DIR)/%.cpp $(addprefix $(OBJ_DIR)/, wg2sd.o) | $(OBJ_DIR) +$(TEST_DIR)/%: $(TEST_DIR)/%.cpp $(addprefix $(OBJ_DIR)/, wg2nd.o) | $(OBJ_DIR) $(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@ $(OBJ_DIR) $(DEBUG_OBJ_DIR): |