version 1.1.1.2, 2012/10/09 09:36:45
|
version 1.1.1.3, 2013/07/22 01:17:35
|
Line 5
|
Line 5
|
|
|
@SET_MAKE@ |
@SET_MAKE@ |
|
|
ACLOCAL_AM_FLAGS = -I m4 | ACLOCAL_AMFLAGS = -I m4 |
|
|
# Make sure .cpp takes precedence to avoid compiling old .c file |
# Make sure .cpp takes precedence to avoid compiling old .c file |
SUFFIXES = .cpp .c .s .o |
SUFFIXES = .cpp .c .s .o |
Line 34 if NEED_REGEX
|
Line 34 if NEED_REGEX
|
AM_CPPFLAGS += -I$(srcdir)/regex |
AM_CPPFLAGS += -I$(srcdir)/regex |
endif |
endif |
|
|
sbin_PROGRAMS = smartd \ | sbin_PROGRAMS = \ |
smartctl | smartctl \ |
| smartd |
|
|
if ENABLE_DRIVEDB |
if ENABLE_DRIVEDB |
if OS_WIN32_MINGW |
if OS_WIN32_MINGW |
Line 45 endif
|
Line 46 endif
|
endif |
endif |
|
|
|
|
smartd_SOURCES = smartd.cpp \ | smartctl_SOURCES = \ |
atacmdnames.cpp \ | smartctl.cpp \ |
atacmdnames.h \ | smartctl.h \ |
atacmds.cpp \ | atacmdnames.cpp \ |
atacmds.h \ | atacmdnames.h \ |
dev_ata_cmd_set.cpp \ | atacmds.cpp \ |
dev_ata_cmd_set.h \ | atacmds.h \ |
dev_interface.cpp \ | ataidentify.cpp \ |
dev_interface.h \ | ataidentify.h \ |
dev_tunnelled.h \ | ataprint.cpp \ |
drivedb.h \ | ataprint.h \ |
int64.h \ | dev_ata_cmd_set.cpp \ |
knowndrives.cpp \ | dev_ata_cmd_set.h \ |
knowndrives.h \ | dev_interface.cpp \ |
scsicmds.cpp \ | dev_interface.h \ |
scsicmds.h \ | dev_tunnelled.h \ |
scsiata.cpp \ | drivedb.h \ |
utility.cpp \ | int64.h \ |
utility.h | knowndrives.cpp \ |
| knowndrives.h \ |
| scsicmds.cpp \ |
| scsicmds.h \ |
| scsiata.cpp \ |
| scsiprint.cpp \ |
| scsiprint.h \ |
| utility.cpp \ |
| utility.h |
|
|
|
smartctl_LDADD = @os_deps@ @os_libs@ |
|
smartctl_DEPENDENCIES = @os_deps@ |
|
|
|
EXTRA_smartctl_SOURCES = \ |
|
os_darwin.cpp \ |
|
os_darwin.h \ |
|
os_linux.cpp \ |
|
os_linux.h \ |
|
os_freebsd.cpp \ |
|
os_freebsd.h \ |
|
os_netbsd.cpp \ |
|
os_netbsd.h \ |
|
os_openbsd.cpp \ |
|
os_openbsd.h \ |
|
os_qnxnto.cpp \ |
|
os_qnxnto.h \ |
|
os_solaris.cpp \ |
|
os_solaris.h \ |
|
os_solaris_ata.s \ |
|
os_win32.cpp \ |
|
os_generic.cpp \ |
|
os_generic.h \ |
|
cciss.cpp \ |
|
cciss.h \ |
|
cissio_freebsd.h \ |
|
dev_areca.cpp \ |
|
dev_areca.h \ |
|
dev_legacy.cpp \ |
|
megaraid.h |
|
|
|
if OS_WIN32_MINGW |
|
|
|
smartctl_LDADD += smartctl_res.o |
|
smartctl_DEPENDENCIES += smartctl_res.o |
|
|
|
endif |
|
|
|
|
|
smartd_SOURCES = \ |
|
smartd.cpp \ |
|
atacmdnames.cpp \ |
|
atacmdnames.h \ |
|
atacmds.cpp \ |
|
atacmds.h \ |
|
dev_ata_cmd_set.cpp \ |
|
dev_ata_cmd_set.h \ |
|
dev_interface.cpp \ |
|
dev_interface.h \ |
|
dev_tunnelled.h \ |
|
drivedb.h \ |
|
int64.h \ |
|
knowndrives.cpp \ |
|
knowndrives.h \ |
|
scsicmds.cpp \ |
|
scsicmds.h \ |
|
scsiata.cpp \ |
|
utility.cpp \ |
|
utility.h |
|
|
smartd_LDADD = @os_deps@ @os_libs@ @CAPNG_LDADD@ |
smartd_LDADD = @os_deps@ @os_libs@ @CAPNG_LDADD@ |
smartd_DEPENDENCIES = @os_deps@ |
smartd_DEPENDENCIES = @os_deps@ |
|
|
EXTRA_smartd_SOURCES = os_darwin.cpp \ | EXTRA_smartd_SOURCES = \ |
os_darwin.h \ | os_darwin.cpp \ |
os_linux.cpp \ | os_darwin.h \ |
os_linux.h \ | os_linux.cpp \ |
os_freebsd.cpp \ | os_linux.h \ |
os_freebsd.h \ | os_freebsd.cpp \ |
os_netbsd.cpp \ | os_freebsd.h \ |
os_netbsd.h \ | os_netbsd.cpp \ |
os_openbsd.cpp \ | os_netbsd.h \ |
os_openbsd.h \ | os_openbsd.cpp \ |
os_qnxnto.cpp \ | os_openbsd.h \ |
os_qnxnto.h \ | os_qnxnto.cpp \ |
os_solaris.cpp \ | os_qnxnto.h \ |
os_solaris.h \ | os_solaris.cpp \ |
os_solaris_ata.s \ | os_solaris.h \ |
os_win32.cpp \ | os_solaris_ata.s \ |
os_generic.cpp \ | os_win32.cpp \ |
os_generic.h \ | os_generic.cpp \ |
cciss.cpp \ | os_generic.h \ |
cciss.h \ | cciss.cpp \ |
cissio_freebsd.h \ | cciss.h \ |
dev_legacy.cpp \ | cissio_freebsd.h \ |
megaraid.h | dev_areca.cpp \ |
| dev_areca.h \ |
| dev_legacy.cpp \ |
| megaraid.h |
|
|
|
|
if OS_WIN32_MINGW |
if OS_WIN32_MINGW |
|
|
smartd_SOURCES += \ |
smartd_SOURCES += \ |
os_win32/daemon_win32.cpp \ |
os_win32/daemon_win32.cpp \ |
os_win32/daemon_win32.h \ |
os_win32/daemon_win32.h \ |
os_win32/hostname_win32.cpp \ |
|
os_win32/hostname_win32.h \ |
|
os_win32/syslog_win32.cpp \ |
os_win32/syslog_win32.cpp \ |
os_win32/syslog.h |
os_win32/syslog.h |
|
|
|
smartd_LDADD += smartd_res.o |
|
smartd_DEPENDENCIES += smartd_res.o |
|
|
endif |
endif |
|
|
smartctl_SOURCES= smartctl.cpp \ |
|
smartctl.h \ |
|
atacmdnames.cpp \ |
|
atacmdnames.h \ |
|
atacmds.cpp \ |
|
atacmds.h \ |
|
ataprint.cpp \ |
|
ataprint.h \ |
|
dev_ata_cmd_set.cpp \ |
|
dev_ata_cmd_set.h \ |
|
dev_interface.cpp \ |
|
dev_interface.h \ |
|
dev_tunnelled.h \ |
|
drivedb.h \ |
|
int64.h \ |
|
knowndrives.cpp \ |
|
knowndrives.h \ |
|
scsicmds.cpp \ |
|
scsicmds.h \ |
|
scsiata.cpp \ |
|
scsiprint.cpp \ |
|
scsiprint.h \ |
|
utility.cpp \ |
|
utility.h |
|
|
|
|
|
smartctl_LDADD = @os_deps@ @os_libs@ |
|
smartctl_DEPENDENCIES = @os_deps@ |
|
|
|
EXTRA_smartctl_SOURCES = os_linux.cpp \ |
|
os_linux.h \ |
|
os_freebsd.cpp \ |
|
os_freebsd.h \ |
|
os_netbsd.cpp \ |
|
os_netbsd.h \ |
|
os_openbsd.cpp \ |
|
os_openbsd.h \ |
|
os_qnxnto.cpp \ |
|
os_qnxnto.h \ |
|
os_solaris.cpp \ |
|
os_solaris.h \ |
|
os_win32.cpp \ |
|
os_generic.cpp \ |
|
os_generic.h \ |
|
cciss.cpp \ |
|
cciss.h \ |
|
cissio_freebsd.h \ |
|
dev_legacy.cpp \ |
|
megaraid.h |
|
|
|
if NEED_GETOPT_LONG |
if NEED_GETOPT_LONG |
|
|
smartctl_SOURCES += \ |
smartctl_SOURCES += \ |
Line 270 man_MANS = smartd.conf.5 \
|
Line 292 man_MANS = smartd.conf.5 \
|
endif |
endif |
|
|
docsdir=$(docdir) |
docsdir=$(docdir) |
docs_DATA = AUTHORS \ | docs_DATA = \ |
CHANGELOG \ | AUTHORS \ |
COPYING \ | ChangeLog \ |
INSTALL \ | ChangeLog-5.0-6.0 \ |
NEWS \ | COPYING \ |
README \ | INSTALL \ |
TODO \ | NEWS \ |
WARNINGS \ | README \ |
smartd.conf | TODO \ |
| WARNINGS \ |
| smartd.conf |
|
|
examplesdir=$(exampledir) |
examplesdir=$(exampledir) |
examples_DATA = \ |
examples_DATA = \ |
Line 321 uninstall-sysconfDATA:
|
Line 345 uninstall-sysconfDATA:
|
echo " rm -f $$f"; \ |
echo " rm -f $$f"; \ |
rm -f "$$f" |
rm -f "$$f" |
|
|
|
# automake does not allow 'sysconf_SCRIPTS' |
|
sysscriptdir = $(sysconfdir) |
|
sysscript_SCRIPTS = smartd_warning.sh |
|
|
EXTRA_DIST = \ |
EXTRA_DIST = \ |
autogen.sh \ |
autogen.sh \ |
smartd.initd.in \ |
smartd.initd.in \ |
Line 330 EXTRA_DIST = \
|
Line 358 EXTRA_DIST = \
|
smartd.conf.5.in \ |
smartd.conf.5.in \ |
smartd.conf \ |
smartd.conf \ |
smartd.service.in \ |
smartd.service.in \ |
|
smartd_warning.sh.in \ |
update-smart-drivedb.in \ |
update-smart-drivedb.in \ |
m4/pkg.m4 \ |
m4/pkg.m4 \ |
os_darwin/SMART.in \ |
os_darwin/SMART.in \ |
Line 339 EXTRA_DIST = \
|
Line 368 EXTRA_DIST = \
|
os_win32/runcmd.c \ |
os_win32/runcmd.c \ |
os_win32/runcmda.exe.manifest \ |
os_win32/runcmda.exe.manifest \ |
os_win32/runcmdu.exe.manifest \ |
os_win32/runcmdu.exe.manifest \ |
os_win32/syslogevt.c \ | os_win32/smartctl_res.rc.in \ |
| os_win32/smartd_res.rc.in \ |
| os_win32/smartd_warning.cmd \ |
os_win32/syslogevt.mc \ |
os_win32/syslogevt.mc \ |
os_win32/update-smart-drivedb.nsi \ |
os_win32/update-smart-drivedb.nsi \ |
os_win32/wbemcli_small.h \ |
os_win32/wbemcli_small.h \ |
|
os_win32/wtssendmsg.c \ |
$(docs_DATA) \ |
$(docs_DATA) \ |
$(examples_DATA) \ |
$(examples_DATA) \ |
$(examples_SCRIPTS) |
$(examples_SCRIPTS) |
Line 363 CLEANFILES = \
|
Line 395 CLEANFILES = \
|
smartd.initd \ |
smartd.initd \ |
smartd.freebsd.initd \ |
smartd.freebsd.initd \ |
smartd.service \ |
smartd.service \ |
|
smartd_warning.sh \ |
svnversion.h \ |
svnversion.h \ |
update-smart-drivedb \ |
update-smart-drivedb \ |
SMART |
SMART |
Line 386 utility.o: svnversion.h
|
Line 419 utility.o: svnversion.h
|
|
|
if IS_SVN_BUILD |
if IS_SVN_BUILD |
# Get version info from SVN |
# Get version info from SVN |
svnversion.h: CHANGELOG Makefile $(svn_deps) | svnversion.h: ChangeLog Makefile $(svn_deps) |
echo '/* svnversion.h. Generated by Makefile from svn info. */' > $@ |
echo '/* svnversion.h. Generated by Makefile from svn info. */' > $@ |
(cd $(srcdir) \ |
(cd $(srcdir) \ |
&& svnversion 2>/dev/null | sed -n 's,^\([0-9].*\),REV "\1",p' \ |
&& svnversion 2>/dev/null | sed -n 's,^\([0-9].*\),REV "\1",p' \ |
Line 396 svnversion.h: CHANGELOG Makefile $(svn_deps)
|
Line 429 svnversion.h: CHANGELOG Makefile $(svn_deps)
|
else |
else |
|
|
# SVN not available, guess version info from Id strings |
# SVN not available, guess version info from Id strings |
svnversion.h: CHANGELOG Makefile | svnversion.h: ChangeLog Makefile |
echo '/* svnversion.h. Generated by Makefile from Id strings. */' > $@ |
echo '/* svnversion.h. Generated by Makefile from Id strings. */' > $@ |
(cd $(srcdir) && cat CHANGELOG Makefile.am configure.in smart*.in *.cpp *.h *.s) \ | (cd $(srcdir) && cat ChangeLog Makefile.am configure.ac smart*.in *.cpp *.h *.s) \ |
| sed -n 's,^.*\$$[I][d]: [^ ]* \([0-9][0-9]* [0-9][-0-9]* [0-9][:0-9]*\)[^:0-9][^$$]*\$$.*$$,\1,p' \ |
| sed -n 's,^.*\$$[I][d]: [^ ]* \([0-9][0-9]* [0-9][-0-9]* [0-9][:0-9]*\)[^:0-9][^$$]*\$$.*$$,\1,p' \ |
| sort -n -r \ |
| sort -n -r \ |
| sed -n 'h;s,^\([^ ]*\) .*$$,REV "\1",p;g;s,^[^ ]* \([^ ]*\) .*$$,DATE "\1",p;g;s,^[^ ]* [^ ]* \([^ ]*\)$$,TIME "\1",p;q' \ |
| sed -n 'h;s,^\([^ ]*\) .*$$,REV "\1",p;g;s,^[^ ]* \([^ ]*\) .*$$,DATE "\1",p;g;s,^[^ ]* [^ ]* \([^ ]*\)$$,TIME "\1",p;q' \ |
Line 424 update-smart-drivedb: update-smart-drivedb.in config.s
|
Line 457 update-smart-drivedb: update-smart-drivedb.in config.s
|
$(SHELL) ./config.status --file=$@ |
$(SHELL) ./config.status --file=$@ |
chmod +x $@ |
chmod +x $@ |
|
|
|
smartd_warning.sh: smartd_warning.sh.in config.status |
|
$(SHELL) ./config.status --file=$@ |
|
chmod +x $@ |
|
|
if INSTALL_INITSCRIPT |
if INSTALL_INITSCRIPT |
if OS_DARWIN |
if OS_DARWIN |
Line 494 systemdsystemunit_DATA = smartd.service
|
Line 530 systemdsystemunit_DATA = smartd.service
|
endif |
endif |
|
|
smartd.service: smartd.service.in Makefile |
smartd.service: smartd.service.in Makefile |
sed "s|/usr/local/sbin/smartd|$(sbindir)/smartd|g; \ | sed -e 's|/usr/local/sbin/smartd|$(sbindir)/smartd|g' \ |
s|/usr/local/etc/sysconfig/smartmontools|$(sysconfdir)/sysconfig/smartmontools|g" \ | -e 's|/usr/local/etc/sysconfig/smartmontools|$(sysconfdir)/sysconfig/smartmontools|g' \ |
$(srcdir)/smartd.service.in > $@ |
$(srcdir)/smartd.service.in > $@ |
|
|
if ENABLE_CAPABILITIES |
if ENABLE_CAPABILITIES |
Line 523 MAN_ATTRIBUTELOG = sed '/^\.\\" %IF ENABLE_ATTRIBUTELO
|
Line 559 MAN_ATTRIBUTELOG = sed '/^\.\\" %IF ENABLE_ATTRIBUTELO
|
endif |
endif |
|
|
MAN_FILTER = \ |
MAN_FILTER = \ |
sed "s|CURRENT_SVN_VERSION|$(releaseversion)|g; \ | sed -e 's|CURRENT_SVN_VERSION|$(releaseversion)|g' \ |
s|CURRENT_SVN_DATE|`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`|g; \ | -e "s|CURRENT_SVN_DATE|`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`|g" \ |
s|CURRENT_SVN_REV|`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`|g; \ | -e "s|CURRENT_SVN_REV|`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`|g" \ |
s|/usr/local/share/man/|$(mandir)/|g; \ | -e 's|/usr/local/share/man/|$(mandir)/|g' \ |
s|/usr/local/sbin/|$(sbindir)/|g; \ | -e 's|/usr/local/sbin/|$(sbindir)/|g' \ |
s|/usr/local/etc/rc\\.d/init.d/|$(initddir)/|g; \ | -e 's|/usr/local/etc/rc\.d/init.d/|$(initddir)/|g' \ |
s|/usr/local/share/doc/smartmontools/examplescripts/|!exampledir!|g; \ | -e 's|/usr/local/share/doc/smartmontools/examplescripts/|!exampledir!|g' \ |
s|/usr/local/share/doc/smartmontools/|$(docsdir)/|g; \ | -e 's|/usr/local/share/doc/smartmontools/|$(docsdir)/|g' \ |
s|!exampledir!|$(exampledir)/|g; \ | -e 's|!exampledir!|$(exampledir)/|g' \ |
s|/usr/local/etc/smartd\\.conf|$(sysconfdir)/smartd.conf|g; \ | -e 's|/usr/local/etc/smartd\.conf|$(sysconfdir)/smartd.conf|g' \ |
s|/usr/local/etc/smart_drivedb\\.h|$(sysconfdir)/smart_drivedb\\.h|g" | \ | -e 's|/usr/local/etc/smartd_warning\.|$(sysconfdir)/smartd_warning.|g' \ |
| -e 's|/usr/local/etc/smart_drivedb\.h|$(sysconfdir)/smart_drivedb.h|g' | \ |
$(MAN_ATTRIBUTELOG) | \ |
$(MAN_ATTRIBUTELOG) | \ |
$(MAN_CAPABILITIES) | \ |
$(MAN_CAPABILITIES) | \ |
$(MAN_DRIVEDB) | \ |
$(MAN_DRIVEDB) | \ |
Line 612 check:
|
Line 649 check:
|
|
|
|
|
if OS_WIN32_MINGW |
if OS_WIN32_MINGW |
|
# Windows resources |
|
|
|
smartctl_res.o: smartctl_res.rc |
|
$(WINDRES) $< $@ |
|
|
|
smartd_res.o: smartd_res.rc syslogevt.rc |
|
$(WINDRES) -I. $< $@ |
|
|
|
# Convert version for VERSIONINFO resource: 6.1 r3754 -> 6.1.0.3754 |
|
WIN_RC_FILTER = \ |
|
( ver=`echo '$(PACKAGE_VERSION).0' | sed -n 's,^\([0-9]*\.[0-9]*\.[0-9]*\).*$$,\1,p'`; \ |
|
rev=`sed -n 's,^.*REV[^"]*"\([0-9]*\).*$$,\1,p' svnversion.h`; \ |
|
txtver="$${ver:-0.0.0}.$${rev:-0}"; binver=`echo "$$txtver" | sed 's|\.|,|g'`; \ |
|
sed -e "s|@BINARY_VERSION@|$$binver|g" -e "s|@TEXT_VERSION@|$$txtver|g"; ) |
|
|
|
smartctl_res.rc: os_win32/smartctl_res.rc.in Makefile svnversion.h |
|
cat $< | $(WIN_RC_FILTER) > $@ |
|
|
|
smartd_res.rc: os_win32/smartd_res.rc.in Makefile svnversion.h |
|
cat $< | $(WIN_RC_FILTER) > $@ |
|
|
|
syslogevt.rc: os_win32/syslogevt.mc |
|
$(WINDMC) -b $< |
|
|
# Definitions for Windows distribution |
# Definitions for Windows distribution |
|
|
if OS_WIN64 |
if OS_WIN64 |
Line 631 EXEFILES_WIN32 = \
|
Line 692 EXEFILES_WIN32 = \
|
$(exedir_win32)/smartctl.exe \ |
$(exedir_win32)/smartctl.exe \ |
$(exedir_win32)/smartctl-nc.exe \ |
$(exedir_win32)/smartctl-nc.exe \ |
$(exedir_win32)/smartd.exe \ |
$(exedir_win32)/smartd.exe \ |
|
$(exedir_win32)/smartd_warning.cmd \ |
$(exedir_win32)/runcmda.exe \ |
$(exedir_win32)/runcmda.exe \ |
$(exedir_win32)/runcmdu.exe | $(exedir_win32)/runcmdu.exe \ |
| $(exedir_win32)/wtssendmsg.exe |
|
|
if OS_WIN32_WINDMC |
|
EXEFILES_WIN32 += \ |
|
$(exedir_win32)/syslogevt.exe |
|
endif |
|
|
|
if ENABLE_DRIVEDB |
if ENABLE_DRIVEDB |
if OS_WIN32_NSIS |
if OS_WIN32_NSIS |
EXEFILES_WIN32 += \ |
EXEFILES_WIN32 += \ |
Line 649 endif
|
Line 707 endif
|
FILES_WIN32 = \ |
FILES_WIN32 = \ |
$(EXEFILES_WIN32) \ |
$(EXEFILES_WIN32) \ |
$(docdir_win32)/AUTHORS.txt \ |
$(docdir_win32)/AUTHORS.txt \ |
$(docdir_win32)/CHANGELOG.txt \ | $(docdir_win32)/ChangeLog.txt \ |
| $(docdir_win32)/ChangeLog-5.0-6.0.txt \ |
$(docdir_win32)/COPYING.txt \ |
$(docdir_win32)/COPYING.txt \ |
$(docdir_win32)/INSTALL.txt \ |
$(docdir_win32)/INSTALL.txt \ |
$(docdir_win32)/NEWS.txt \ |
$(docdir_win32)/NEWS.txt \ |
Line 676 CLEANFILES += \
|
Line 735 CLEANFILES += \
|
$(FILES_WIN32) \ |
$(FILES_WIN32) \ |
runcmdu.exe \ |
runcmdu.exe \ |
smartctl-nc.exe smartctl-nc.exe.tmp \ |
smartctl-nc.exe smartctl-nc.exe.tmp \ |
syslogevt.exe syslogevt.h syslogevt.o \ | smartctl_res.rc smartctl_res.o \ |
syslogevt.res.o syslogevt.rc syslogevt_*.bin \ | smartd_res.rc smartd_res.o \ |
| syslogevt.h syslogevt.o \ |
| syslogevt.rc syslogevt_*.bin \ |
| wtssendmsg.exe \ |
update-smart-drivedb.exe \ |
update-smart-drivedb.exe \ |
distdir.mkdir |
distdir.mkdir |
|
|
Line 758 $(exedir_win32)/%.exe.manifest: $(srcdir)/os_win32/%.e
|
Line 820 $(exedir_win32)/%.exe.manifest: $(srcdir)/os_win32/%.e
|
$(UNIX2DOS) < $< > $@ |
$(UNIX2DOS) < $< > $@ |
touch -r $< $@ |
touch -r $< $@ |
|
|
|
$(exedir_win32)/%.cmd: $(srcdir)/os_win32/%.cmd |
|
$(UNIX2DOS) < $< > $@ |
|
touch -r $< $@ |
|
|
$(docdir_win32)/%.html: %.html |
$(docdir_win32)/%.html: %.html |
$(UNIX2DOS) < $< > $@ |
$(UNIX2DOS) < $< > $@ |
touch -r $< $@ |
touch -r $< $@ |
Line 794 smartctl-nc.exe: smartctl.exe
|
Line 860 smartctl-nc.exe: smartctl.exe
|
else echo "EXE patch failed"; exit 1; fi |
else echo "EXE patch failed"; exit 1; fi |
mv -f $@.tmp $@ |
mv -f $@.tmp $@ |
|
|
# Build runcmd?.exe | # Build runcmd?.exe and wtssendmsg.exe |
runcmdu.exe: os_win32/runcmd.c |
runcmdu.exe: os_win32/runcmd.c |
$(CC) -Os -o $@ $< |
$(CC) -Os -o $@ $< |
|
|
if OS_WIN32_WINDMC | wtssendmsg.exe: os_win32/wtssendmsg.c |
# Build syslogevt.exe event message file tool | $(CC) -Os -o $@ $< -lwtsapi32 |
|
|
syslogevt.exe: syslogevt.o syslogevt.res.o | # Build os_win32/vc10/{config.h,smart*.rc,svnversion.h} for MSVC10 from MinGW files |
$(LINK) $^ | |
|
|
syslogevt.o: os_win32/syslogevt.c syslogevt.rc | config-vc10: $(srcdir)/os_win32/vc10/config.h \ |
$(CC) -c -I. -Os -o $@ $< | $(srcdir)/os_win32/vc10/smartctl_res.rc \ |
| $(srcdir)/os_win32/vc10/smartd_res.rc \ |
| $(srcdir)/os_win32/vc10/svnversion.h |
|
|
syslogevt.res.o: syslogevt.rc | $(srcdir)/os_win32/vc10/config.h: config.h Makefile |
$(WINDRES) $< $@ | sed -e '1i/* os_win32/vc10/config.h. Generated from config.h by Makefile. */' \ |
| |
syslogevt.rc: os_win32/syslogevt.mc | |
$(WINDMC) -b $< | |
endif | |
| |
# Build {config,svnversion}_vc10.h for MSVC10 from MinGW {config,svnversion}.h | |
| |
config-vc10: $(srcdir)/os_win32/config_vc10.h $(srcdir)/os_win32/svnversion_vc10.h | |
| |
$(srcdir)/os_win32/config_vc10.h: config.h Makefile | |
sed -e '1i/* config_vc10.h. Generated from config.h by Makefile. */' \ | |
-e 's,^#define HAVE_\(ATTR_PACKED\|GETTIMEOFDAY\|INTTYPES_H\|[DK_]*NTDDDISK_H\|STRINGS_H\|STRTOULL\|UNISTD_H\|WORKING_SNPRINTF\) 1$$,/* #undef HAVE_\1 */,' \ |
-e 's,^#define HAVE_\(ATTR_PACKED\|GETTIMEOFDAY\|INTTYPES_H\|[DK_]*NTDDDISK_H\|STRINGS_H\|STRTOULL\|UNISTD_H\|WORKING_SNPRINTF\) 1$$,/* #undef HAVE_\1 */,' \ |
-e 's,^\(#define SMARTMONTOOLS_BUILD_HOST "[^-]*\)[^"]*,\1-pc-w32vc10,' $< > $@ |
-e 's,^\(#define SMARTMONTOOLS_BUILD_HOST "[^-]*\)[^"]*,\1-pc-w32vc10,' $< > $@ |
|
|
$(srcdir)/os_win32/svnversion_vc10.h: svnversion.h | $(srcdir)/os_win32/vc10/svnversion.h: svnversion.h |
| cp $< $@ |
| |
| $(srcdir)/os_win32/vc10/smartctl_res.rc: smartctl_res.rc |
| cp $< $@ |
| |
| $(srcdir)/os_win32/vc10/smartd_res.rc: smartd_res.rc |
cp $< $@ |
cp $< $@ |
|
|
endif |
endif |