]> git.ipfire.org Git - network.git/commitdiff
Makefile: Add scaffolding for networkd
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Jan 2023 12:41:47 +0000 (12:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jan 2023 22:57:29 +0000 (22:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitignore
Makefile.am
src/networkd/main.c [new file with mode: 0644]

index bb093d362108af04c3590e866dc540d386a0d180..e3bae6723c696c79dc7623b061cc975cafa01ff0 100644 (file)
@@ -3,6 +3,7 @@
 /config.*
 /libtool
 /missing
+/networkd
 /src/functions/functions
 /src/inetcalc
 /src/libnetwork/libnetwork.pc
index 4aa7314b59998580139a0785e73da0cf0fddba8d..64ad94d71f8bc344ae02e53374e9d26170fc774b 100644 (file)
@@ -61,6 +61,7 @@ INSTALL_DIRS =
 INSTALL_EXEC_HOOKS =
 UNINSTALL_EXEC_HOOKS =
 noinst_DATA =
+sbin_PROGRAMS =
 
 AM_CPPFLAGS = \
        $(OUR_CPPFLAGS) \
@@ -299,6 +300,23 @@ EXTRA_DIST += \
 
 # ------------------------------------------------------------------------------
 
+sbin_PROGRAMS += \
+       networkd
+
+dist_networkd_SOURCES = \
+       src/networkd/main.c
+
+networkd_CPPFLAGS = \
+       $(AM_CPPFLAGS)
+
+networkd_CFLAGS = \
+       $(AM_CFLAGS)
+
+networkd_LDFLAGS = \
+       $(AM_LDFLAGS)
+
+# ------------------------------------------------------------------------------
+
 util_PROGRAMS = \
        src/utils/network-phy-list-channels \
        src/utils/network-phy-list-ciphers \
diff --git a/src/networkd/main.c b/src/networkd/main.c
new file mode 100644 (file)
index 0000000..14aafdd
--- /dev/null
@@ -0,0 +1,23 @@
+/*#############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2023 IPFire Network Development Team                          #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+int main(int argc, char** argv) {
+       return 0;
+}