sbin_PROGRAMS =
dist_usrbin_exec_SCRIPTS =
-INSTALL_EXEC_HOOKS =
-UNINSTALL_HOOKS =
-
INSTALL_EXEC_HOOKS =
UNINSTALL_HOOKS =
INSTALL_DATA_HOOKS =
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
disk-utils/Makefile
fdisk/Makefile
getopt/Makefile
-hwclock/Makefile
libblkid/blkid.pc
libblkid/docs/Makefile
libblkid/docs/version.xml
+++ /dev/null
-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
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
}
#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)
# 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>
#include <time.h>
#include <unistd.h>
-#include "clock.h"
#include "nls.h"
+#include "hwclock.h"
+
/*
* Get defines for rtc stuff.
*
#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;