Skip to content

Commit

Permalink
add 'make kernel' to automake project
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Sep 30, 2014
1 parent 9ada993 commit 5934da0
Show file tree
Hide file tree
Showing 27 changed files with 4,862 additions and 801 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ types_c.vim
.cproject
*.1
.settings/
pcapsend
20 changes: 16 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 -I libopts/m4

if NEED_LIBOPTS
SUBDIRS = scripts lib $(LIBOPTS_DIR) src
SUBDIRS = $(KERNEL_DIR) scripts lib $(LIBOPTS_DIR) src
else
SUBDIRS = scripts lib src
SUBDIRS = $(KERNEL_DIR) scripts lib src
endif

DIST_SUBDIRS = scripts lib libopts src docs test
DIST_SUBDIRS = scripts lib libopts src docs test kernel
.PHONY: manpages docs test man2html


Expand Down Expand Up @@ -54,6 +54,18 @@ doxygen: version

ncc:
CC=ncc make

LINUX_MODULE_DIR = $(top_builddir)/kernel

kernel:
echo Making Linux quick_tx module in $(LINUX_MODULE_DIR)
cd $(LINUX_MODULE_DIR) && make


LINUX_MODULE_EXAMPLE_DIR = $(top_builddir)/kernel/linux/example
kernel_example:
echo Making Linux quick_tx sample program in $(LINUX_MODULE_EXAMPLE_DIR)
cd $(LINUX_MODULE_EXAMPLE_DIR) && make all

MOSTLYCLEANFILES = tcpreplay.spec *~

Expand All @@ -63,4 +75,4 @@ MAINTAINERCLEANFILES = Makefile.in configure *.bak

EXTRA_DIST = doxygen.cfg.in autogen.sh \
m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
m4/ltversion.m4 m4/lt~obsolete.m4
m4/ltversion.m4 m4/lt~obsolete.m4 acinclude.m4
23 changes: 18 additions & 5 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
config/mkinstalldirs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/libopts/m4/libopts.m4 \
$(top_srcdir)/configure.ac
$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
Expand Down Expand Up @@ -142,6 +142,7 @@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
KERNEL_DIR = @KERNEL_DIR@
LD = @LD@
LDFLAGS = @LDFLAGS@
LDNETINC = @LDNETINC@
Expand Down Expand Up @@ -198,6 +199,7 @@ abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
ac_pkss_mktemp = @ac_pkss_mktemp@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
Expand Down Expand Up @@ -225,6 +227,8 @@ htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
kerneldir = @kerneldir@
kernelext = @kernelext@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
Expand Down Expand Up @@ -258,17 +262,19 @@ top_srcdir = @top_srcdir@
# $Id$
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 -I libopts/m4
@NEED_LIBOPTS_FALSE@SUBDIRS = scripts lib src
@NEED_LIBOPTS_TRUE@SUBDIRS = scripts lib $(LIBOPTS_DIR) src
DIST_SUBDIRS = scripts lib libopts src docs test
@NEED_LIBOPTS_FALSE@SUBDIRS = $(KERNEL_DIR) scripts lib src
@NEED_LIBOPTS_TRUE@SUBDIRS = $(KERNEL_DIR) scripts lib $(LIBOPTS_DIR) src
DIST_SUBDIRS = scripts lib libopts src docs test kernel
DOCS_DIR = $(top_builddir)/docs
TEST_DIR = $(top_builddir)/test
LINUX_MODULE_DIR = $(top_builddir)/kernel
LINUX_MODULE_EXAMPLE_DIR = $(top_builddir)/kernel/linux/example
MOSTLYCLEANFILES = tcpreplay.spec *~
DISTCLEANFILES = .tm_project.cache stamp-h1 *.tar.*
MAINTAINERCLEANFILES = Makefile.in configure *.bak
EXTRA_DIST = doxygen.cfg.in autogen.sh \
m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
m4/ltversion.m4 m4/lt~obsolete.m4
m4/ltversion.m4 m4/lt~obsolete.m4 acinclude.m4

all: all-recursive

Expand Down Expand Up @@ -795,6 +801,13 @@ doxygen: version
ncc:
CC=ncc make

kernel:
echo Making Linux quick_tx module in $(LINUX_MODULE_DIR)
cd $(LINUX_MODULE_DIR) && make
kernel_example:
echo Making Linux quick_tx sample program in $(LINUX_MODULE_EXAMPLE_DIR)
cd $(LINUX_MODULE_EXAMPLE_DIR) && make all

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
Loading

0 comments on commit 5934da0

Please sign in to comment.