summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
-rw-r--r--configure.ac1
-rw-r--r--hwclock/.gitignore1
-rw-r--r--hwclock/Makefile.am21
-rw-r--r--sys-utils/Makemodule.am20
-rw-r--r--sys-utils/hwclock-cmos.c (renamed from hwclock/cmos.c)2
-rw-r--r--sys-utils/hwclock-kd.c (renamed from hwclock/kd.c)3
-rw-r--r--sys-utils/hwclock-rtc.c (renamed from hwclock/rtc.c)3
-rw-r--r--sys-utils/hwclock.8 (renamed from hwclock/hwclock.8)0
-rw-r--r--sys-utils/hwclock.c (renamed from hwclock/hwclock.c)5
-rw-r--r--sys-utils/hwclock.h (renamed from hwclock/clock.h)0
11 files changed, 28 insertions, 35 deletions
diff --git a/Makefile.am b/Makefile.am
index 35cd0b9d0..8b8d5a95d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,9 +17,6 @@ dist_usrbin_exec_SCRIPTS =
INSTALL_EXEC_HOOKS =
UNINSTALL_HOOKS =
-
-INSTALL_EXEC_HOOKS =
-UNINSTALL_HOOKS =
INSTALL_DATA_HOOKS =
EXTRA_DIST =
@@ -39,10 +36,6 @@ SUBDIRS = \
RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
-name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
-if BUILD_HWCLOCK
-SUBDIRS += hwclock
-endif
-
if BUILD_PARTX
SUBDIRS += partx
endif
diff --git a/configure.ac b/configure.ac
index 84031154c..def8bb53a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1288,7 +1288,6 @@ Makefile
disk-utils/Makefile
fdisk/Makefile
getopt/Makefile
-hwclock/Makefile
libblkid/blkid.pc
libblkid/docs/Makefile
libblkid/docs/version.xml
diff --git a/hwclock/.gitignore b/hwclock/.gitignore
deleted file mode 100644
index 97f59f336..000000000
--- a/hwclock/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-hwclock
diff --git a/hwclock/Makefile.am b/hwclock/Makefile.am
deleted file mode 100644
index 90f5e0108..000000000
--- a/hwclock/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-include $(top_srcdir)/config/include-Makefile.am
-
-dist_man_MANS = hwclock.8
-
-sbin_PROGRAMS = hwclock
-
-hwclock_SOURCES = \
- clock.h \
- cmos.c \
- hwclock.c \
- kd.c \
- $(top_srcdir)/lib/strutils.c
-hwclock_LDADD =
-
-if LINUX
-hwclock_SOURCES += rtc.c
-endif
-
-if HAVE_AUDIT
-hwclock_LDADD += -laudit
-endif
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am
index b4adf634e..cc1a3f63a 100644
--- a/sys-utils/Makemodule.am
+++ b/sys-utils/Makemodule.am
@@ -314,3 +314,23 @@ bin_PROGRAMS += arch
dist_man_MANS += sys-utils/arch.1
arch_SOURCES = sys-utils/arch.c
endif
+
+if BUILD_HWCLOCK
+sbin_PROGRAMS += hwclock
+dist_man_MANS += sys-utils/hwclock.8
+hwclock_SOURCES = \
+ sys-utils/hwclock.c \
+ sys-utils/hwclock.h \
+ sys-utils/hwclock-cmos.c \
+ sys-utils/hwclock-kd.c \
+ lib/strutils.c
+
+if LINUX
+hwclock_SOURCES += sys-utils/hwclock-rtc.c
+endif
+
+hwclock_LDADD =
+if HAVE_AUDIT
+hwclock_LDADD += -laudit
+endif
+endif # BUILD_HWCLOCK
diff --git a/hwclock/cmos.c b/sys-utils/hwclock-cmos.c
index 0c98fb899..366d934fb 100644
--- a/hwclock/cmos.c
+++ b/sys-utils/hwclock-cmos.c
@@ -93,7 +93,7 @@ int inb(int c __attribute__ ((__unused__)))
}
#endif /* __alpha__ */
-#include "clock.h"
+#include "hwclock.h"
#define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10)
#define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10)
diff --git a/hwclock/kd.c b/sys-utils/hwclock-kd.c
index 36c1bb245..ec98f45ba 100644
--- a/hwclock/kd.c
+++ b/sys-utils/hwclock-kd.c
@@ -10,10 +10,11 @@
# include <sys/ioctl.h>
# include <unistd.h>
-# include "clock.h"
# include "nls.h"
# include "usleep.h"
+# include "hwclock.h"
+
/* Get defines for KDGHWCLK and KDSHWCLK (m68k) */
# include <linux/kd.h>
diff --git a/hwclock/rtc.c b/sys-utils/hwclock-rtc.c
index 33dbccc1e..62adc49d7 100644
--- a/hwclock/rtc.c
+++ b/sys-utils/hwclock-rtc.c
@@ -13,9 +13,10 @@
#include <time.h>
#include <unistd.h>
-#include "clock.h"
#include "nls.h"
+#include "hwclock.h"
+
/*
* Get defines for rtc stuff.
*
diff --git a/hwclock/hwclock.8 b/sys-utils/hwclock.8
index 07d9fc024..07d9fc024 100644
--- a/hwclock/hwclock.8
+++ b/sys-utils/hwclock.8
diff --git a/hwclock/hwclock.c b/sys-utils/hwclock.c
index 10ef8da42..c0ac67826 100644
--- a/hwclock/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -73,20 +73,21 @@
#define OPTUTILS_EXIT_CODE EX_USAGE
#include "c.h"
-#include "clock.h"
#include "closestream.h"
#include "nls.h"
#include "optutils.h"
#include "pathnames.h"
#include "strutils.h"
+#include "hwclock.h"
-#define EXCL_ERROR "--{adjust,getepoch,hctosys,predict,set,setepoch,show,systohc,systz}"
#ifdef HAVE_LIBAUDIT
#include <libaudit.h>
static int hwaudit_fd = -1;
static int hwaudit_on;
#endif
+#define EXCL_ERROR "--{adjust,getepoch,hctosys,predict,set,setepoch,show,systohc,systz}"
+
/* The struct that holds our hardware access routines */
struct clock_ops *ur;
diff --git a/hwclock/clock.h b/sys-utils/hwclock.h
index 175a6d1ae..175a6d1ae 100644
--- a/hwclock/clock.h
+++ b/sys-utils/hwclock.h