mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 17:51:55 +00:00
Move gdhcp and miracle-dhcp to ./src/dhcp/
Use a common subdirectory for gdhcp so we can easily replace it once sd-dhcp has server-side support. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
47539226cd
commit
8c2f95257c
11 changed files with 12 additions and 28 deletions
4
COPYING
4
COPYING
|
@ -37,5 +37,5 @@ apply:
|
|||
src/shl_htable.[ch]: Released under the conditions of the LGPLv2+.
|
||||
Please see LICENSE_htable for more.
|
||||
|
||||
src/gdhcp/*: Released under the conditions of the GPLv2.
|
||||
Please see LICENSE_gdhcp for more.
|
||||
src/dhcp/*: Released under the conditions of the GPLv2.
|
||||
Please see LICENSE_gdhcp for more.
|
||||
|
|
34
Makefile.am
34
Makefile.am
|
@ -83,29 +83,6 @@ libmiracle_shared_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|||
libmiracle_shared_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libmiracle_shared_la_LIBADD = $(AM_LIBADD)
|
||||
|
||||
#
|
||||
# gdhcp - dhcp implementation
|
||||
#
|
||||
|
||||
noinst_LTLIBRARIES += libgdhcp.la
|
||||
|
||||
libgdhcp_la_SOURCES = \
|
||||
src/gdhcp/gdhcp.h \
|
||||
src/gdhcp/unaligned.h \
|
||||
src/gdhcp/common.h \
|
||||
src/gdhcp/common.c \
|
||||
src/gdhcp/ipv4ll.h \
|
||||
src/gdhcp/ipv4ll.c \
|
||||
src/gdhcp/client.c \
|
||||
src/gdhcp/server.c
|
||||
libgdhcp_la_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
$(GDHCP_CFLAGS)
|
||||
libgdhcp_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libgdhcp_la_LIBADD = \
|
||||
$(AM_LIBADD) \
|
||||
$(GDHCP_LIBS)
|
||||
|
||||
#
|
||||
# miraclectl
|
||||
#
|
||||
|
@ -130,14 +107,21 @@ miraclectl_LDFLAGS = $(AM_LDFLAGS)
|
|||
bin_PROGRAMS += miracle-dhcp
|
||||
|
||||
miracle_dhcp_SOURCES = \
|
||||
src/miracle-dhcp.c
|
||||
src/dhcp/dhcp.c \
|
||||
src/dhcp/gdhcp.h \
|
||||
src/dhcp/unaligned.h \
|
||||
src/dhcp/common.h \
|
||||
src/dhcp/common.c \
|
||||
src/dhcp/ipv4ll.h \
|
||||
src/dhcp/ipv4ll.c \
|
||||
src/dhcp/client.c \
|
||||
src/dhcp/server.c
|
||||
miracle_dhcp_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
$(DEPS_CFLAGS) \
|
||||
$(GDHCP_CFLAGS)
|
||||
miracle_dhcp_LDADD = \
|
||||
libmiracle-shared.la \
|
||||
libgdhcp.la \
|
||||
$(DEPS_LIBS) \
|
||||
$(GDHCP_LIBS)
|
||||
miracle_dhcp_LDFLAGS = $(AM_LDFLAGS)
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include "gdhcp/gdhcp.h"
|
||||
#include "dhcp/gdhcp.h"
|
||||
#include "shl_log.h"
|
||||
|
||||
static const char *arg_netdev;
|
Loading…
Reference in a new issue