1 ## Process this file with automake to produce Makefile.in
3 # $Id: Makefile.am 3338 2011-05-23 08:29:12Z samm2 $
8 # Make sure .cpp takes precedence to avoid compiling old .c file
9 SUFFIXES = .cpp .c .s .o
11 # BUILD_INFO can be provided by package maintainers (see INSTALL file)
12 BUILD_INFO= "(local build)"
14 AM_CPPFLAGS = -DBUILD_INFO='$(BUILD_INFO)' -DSMARTMONTOOLS_SYSCONFDIR='"$(sysconfdir)"'
16 AM_CPPFLAGS += -DSMARTMONTOOLS_DRIVEDBDIR='"$(drivedbdir)"'
19 AM_CPPFLAGS += -DSMARTMONTOOLS_SAVESTATES='"$(savestates)"'
21 if ENABLE_ATTRIBUTELOG
22 AM_CPPFLAGS += -DSMARTMONTOOLS_ATTRIBUTELOG='"$(attributelog)"'
26 AM_CPPFLAGS += -I$(srcdir)/getopt -DHAVE_GETOPT_LONG -D__GNU_LIBRARY__
29 AM_CPPFLAGS += -I$(srcdir)/regex
32 sbin_PROGRAMS = smartd \
38 sbin_SCRIPTS = update-smart-drivedb
43 smartd_SOURCES = smartd.cpp \
63 smartd_LDADD = @os_deps@ @os_libs@ @CAPNG_LDADD@
64 smartd_DEPENDENCIES = @os_deps@
66 EXTRA_smartd_SOURCES = os_darwin.cpp \
93 os_win32/daemon_win32.cpp \
94 os_win32/daemon_win32.h \
95 os_win32/hostname_win32.cpp \
96 os_win32/hostname_win32.h \
97 os_win32/syslog_win32.cpp \
102 smartctl_SOURCES= smartctl.cpp \
110 dev_ata_cmd_set.cpp \
128 smartctl_LDADD = @os_deps@ @os_libs@
129 smartctl_DEPENDENCIES = @os_deps@
131 EXTRA_smartctl_SOURCES = os_linux.cpp \
153 smartctl_SOURCES += \
167 smartctl_SOURCES += \
170 regex/regex_internal.h
175 regex/regex_internal.h
177 # Included by regex.c:
178 EXTRA_smartctl_SOURCES += \
181 regex/regex_internal.c
183 EXTRA_smartd_SOURCES += \
186 regex/regex_internal.c
192 smartctl_SOURCES += \
194 os_win32/wmiquery.cpp \
199 os_win32/wmiquery.cpp \
202 smartctl_LDADD += -lole32 -loleaut32
203 smartd_LDADD += -lole32 -loleaut32
208 # This block is required because Solaris uses manual page section 1m
209 # for administrative command (linux/freebsd use section 8) and Solaris
210 # uses manual page section 4 for file formats (linux/freebsd use
211 # section 5). Automake can deal cleanly with man page sections 1-8
212 # and n, but NOT with sections of the form 1m.
213 extra_MANS = smartd.conf.4 \
216 install-man: $(extra_MANS)
218 $(mkinstalldirs) $(DESTDIR)$(mandir)/man4
219 $(mkinstalldirs) $(DESTDIR)$(mandir)/man1m
220 for i in $(extra_MANS); do \
221 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
223 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
224 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
225 inst=`echo $$inst | sed -e 's/^.*\///'`; \
226 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
227 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$$ext/$$inst"; \
228 $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$$ext/$$inst; \
232 for i in $(extra_MANS); do \
233 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
235 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
236 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
237 inst=`echo $$inst | sed -e 's/^.*\///'`; \
238 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
239 echo " rm -f $(DESTDIR)$(mandir)/man$$ext/$$inst"; \
240 rm -f $(DESTDIR)$(mandir)/man$$ext/$$inst; \
243 awk '/^.TH/ {$$3="1m"} {print}' < $< | \
244 sed -e 's/smartd\.conf\(.*\)(5)/smartd.conf\1(4)/g' \
245 -e 's/syslog\.conf\(.*\)(5)/syslog.conf\1(4)/g' \
246 -e 's/smartctl\(.*\)(8)/smartctl\1(1m)/g' \
247 -e 's/syslogd\(.*\)(8)/syslogd\1(1m)/g' \
248 -e 's|/var/log/messages|/var/adm/messages|g' \
249 -e 's/smartd\(.*\)(8)/smartd\1(1m)/g' > $@
251 awk '/^.TH/ {$$3="4"} {print}' < $< | \
252 sed -e 's/smartd\.conf\(.*\)(5)/smartd.conf\1(4)/g' \
253 -e 's/syslog\.conf\(.*\)(5)/syslog.conf\1(4)/g' \
254 -e 's/smartctl\(.*\)(8)/smartdctl\1(1m)/g' \
255 -e 's/syslogd\(.*\)(8)/syslogd\1(1m)/g' \
256 -e 's|/var/log/messages|/var/adm/messages|g' \
257 -e 's/smartd\(.*\)(8)/smartd\1(1m)/g' > $@
259 # For systems that adopts traditional manner
260 man_MANS = smartd.conf.5 \
266 docs_DATA = AUTHORS \
276 examplesdir=$(exampledir)
278 examplescripts/README
280 examplescripts/Example1 \
281 examplescripts/Example2 \
282 examplescripts/Example3 \
283 examplescripts/Example4
285 sysconf_DATA = smartd.conf
287 # If modified smartd.conf exists install smartd.conf.sample instead
288 install-sysconfDATA: $(sysconf_DATA)
289 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
290 @s="$(srcdir)/smartd.conf"; \
291 f="$(DESTDIR)$(sysconfdir)/smartd.conf$(smartd_suffix)"; \
292 if test -z "$(smartd_suffix)" && test -f "$$f"; then \
293 if cmp "$$s" "$$f" >/dev/null 2>/dev/null; then :; else \
294 echo "************************************************************"; \
295 echo "*** $$f preserved"; \
296 echo "*** installing smartd.conf.sample instead"; \
297 echo "************************************************************"; \
301 echo " $(INSTALL_DATA) $$s $$f"; \
302 $(INSTALL_DATA) "$$s" "$$f"
304 # If smartd.conf.sample exists preserve smartd.conf
305 uninstall-sysconfDATA:
306 @f="$(DESTDIR)$(sysconfdir)/smartd.conf$(smartd_suffix)"; \
307 if test -z "$(smartd_suffix)" && test -f "$$f".sample; then \
308 echo "************************************************************"; \
309 echo "*** $$f preserved"; \
310 echo "*** removing smartd.conf.sample instead"; \
311 echo "************************************************************"; \
320 smartd.freebsd.initd.in \
326 update-smart-drivedb.in \
328 os_darwin/StartupParameters.plist \
329 os_darwin/English_Localizable.strings \
330 os_win32/installer.nsi \
331 os_win32/syslogevt.c \
332 os_win32/syslogevt.mc \
333 os_win32/update-smart-drivedb.nsi \
334 os_win32/wbemcli_small.h \
353 smartd.freebsd.initd \
356 update-smart-drivedb \
359 # 'make maintainer-clean' also removes files generated by './autogen.sh'
360 MAINTAINERCLEANFILES = \
361 $(srcdir)/Makefile.in \
362 $(srcdir)/aclocal.m4 \
363 $(srcdir)/configure \
364 $(srcdir)/config.guess \
365 $(srcdir)/config.h.in \
366 $(srcdir)/config.h.in~ \
367 $(srcdir)/config.sub \
369 $(srcdir)/install-sh \
371 $(srcdir)/mkinstalldirs
373 utility.o: svnversion.h
376 # Get version info from SVN
377 svnversion.h: CHANGELOG Makefile $(srcdir)/.svn/entries
378 echo '/* svnversion.h. Generated by Makefile from svn info. */' > $@
380 && svnversion 2>/dev/null | sed -n 's,^\([0-9].*\),REV "\1",p' \
381 && TZ= LC_ALL=C svn info 2>/dev/null \
382 | sed -n 'h;s,^.* Date: *\([^ ]*\) .*$$,DATE "\1",p;g;s,^.* Date: *[^ ]* *\([^ ]*\) .*$$,TIME "\1",p') \
383 | sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
386 # SVN not available, guess version info from Id strings
387 svnversion.h: CHANGELOG Makefile
388 echo '/* svnversion.h. Generated by Makefile from Id strings. */' > $@
389 (cd $(srcdir) && cat CHANGELOG Makefile.am configure.in smart*.in *.cpp *.h *.s) \
390 | sed -n 's,^.*\$$[I][d]: [^ ]* \([0-9][0-9]* [0-9][-0-9]* [0-9][:0-9]*\)[^:0-9][^$$]*\$$.*$$,\1,p' \
392 | sed -n 'h;s,^\([^ ]*\) .*$$,REV "\1",p;g;s,^[^ ]* \([^ ]*\) .*$$,DATE "\1",p;g;s,^[^ ]* [^ ]* \([^ ]*\)$$,TIME "\1",p;q' \
393 | sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
398 drivedb_DATA = drivedb.h
402 # Create $(savestatesdir) only
406 if ENABLE_ATTRIBUTELOG
407 # Create $(attributelogdir) only
411 smartd.conf.5.in: smartd.8.in
412 sed '1,/STARTINCLUDE/ D;/ENDINCLUDE/,$$D' < $(srcdir)/smartd.8.in > $(top_builddir)/tmp.directives
413 sed '/STARTINCLUDE/,$$D' < $(srcdir)/smartd.conf.5.in > $(top_builddir)/tmp.head
414 sed '1,/ENDINCLUDE/D' < $(srcdir)/smartd.conf.5.in > $(top_builddir)/tmp.tail
415 cat $(top_builddir)/tmp.head > $(srcdir)/smartd.conf.5.in
416 echo '.\" STARTINCLUDE' >> $(srcdir)/smartd.conf.5.in
417 cat $(top_builddir)/tmp.directives >> $(srcdir)/smartd.conf.5.in
418 echo '.\" ENDINCLUDE' >> $(srcdir)/smartd.conf.5.in
419 cat $(top_builddir)/tmp.tail >> $(srcdir)/smartd.conf.5.in
420 rm -f $(top_builddir)/tmp.head $(top_builddir)/tmp.tail $(top_builddir)/tmp.directives
422 update-smart-drivedb: update-smart-drivedb.in config.status
423 $(SHELL) ./config.status --file=$@
427 if INSTALL_INITSCRIPT
430 os_darwin/StartupParameters.plist \
431 os_darwin/English_Localizable.strings
433 initd_install_name = SMART
435 initd_DATA_install = install-initdDATA-darwin
436 initd_DATA_uninstall = uninstall-initdDATA-darwin
438 SMART : os_darwin/SMART.in
439 sed "s|/usr/sbin/|$(sbindir)/|" $< > $@
441 install-initdDATA-darwin: $(initd_DATA)
442 $(mkinstalldirs) $(DESTDIR)$(initddir)
443 $(mkinstalldirs) $(DESTDIR)$(initddir)/SMART
444 $(mkinstalldirs) $(DESTDIR)$(initddir)/SMART/Resources
445 $(INSTALL_SCRIPT) $(top_builddir)/SMART $(DESTDIR)$(initddir)/SMART
446 $(INSTALL_DATA) $(srcdir)/os_darwin/StartupParameters.plist \
447 $(DESTDIR)$(initddir)/SMART/StartupParameters.plist
448 for i in English ; do \
449 RDIR=$(DESTDIR)$(initddir)/SMART/Resources/$${i}.lproj ; \
450 $(mkinstalldirs) $$RDIR ;\
451 $(INSTALL_DATA) $(srcdir)/os_darwin/$${i}_Localizable.strings \
452 $$RDIR/Localizable.strings ; \
455 uninstall-initdDATA-darwin:
456 rm -rf $(DESTDIR)$(initddir)/$(initd_install_name)
460 initd_DATA = @initdfile@
462 @initdfile@: $(srcdir)/@initdfile@.in Makefile
463 sed "s|/usr/local/sbin/|$(sbindir)/|g" $(srcdir)/@initdfile@.in > $@
465 initd_install_name = smartd$(smartd_suffix)
467 initd_DATA_install = install-initdDATA-generic
468 initd_DATA_uninstall = uninstall-initdDATA-generic
470 install-initdDATA-generic: $(initd_DATA)
471 $(mkinstalldirs) $(DESTDIR)$(initddir)
472 $(INSTALL_SCRIPT) $(top_builddir)/@initdfile@ $(DESTDIR)$(initddir)/smartd$(smartd_suffix)
475 uninstall-initdDATA-generic:
476 rm -rf $(DESTDIR)$(initddir)/$(initd_install_name)
480 initd_DATA_install = install-initdDATA-null
481 initd_DATA_uninstall = uninstall-initdDATA-null
483 install-initdDATA-null:
484 uninstall-initdDATA-null:
487 install-initdDATA : $(initd_DATA_install)
489 uninstall-initdDATA: $(initd_DATA_uninstall)
491 if INSTALL_SYSTEMDUNIT
492 systemdsystemunit_DATA = smartd.service
495 smartd.service: smartd.service.in Makefile
496 sed "s|/usr/local/sbin/smartd|$(sbindir)/smartd|g; \
497 s|/usr/local/etc/sysconfig/smartmontools|$(sysconfdir)/sysconfig/smartmontools|g" \
498 $(srcdir)/smartd.service.in > $@
500 if ENABLE_CAPABILITIES
501 MAN_CAPABILITIES = cat
503 MAN_CAPABILITIES = sed '/BEGIN ENABLE_CAPABILITIES/,/END ENABLE_CAPABILITIES/d'
507 MAN_DRIVEDB = sed "s|/usr/local/share/smartmontools/drivedb\\.h|$(drivedbdir)/drivedb.h|g"
509 MAN_DRIVEDB = sed '/BEGIN ENABLE_DRIVEDB/,/END ENABLE_DRIVEDB/d'
513 MAN_SAVESTATES = sed "s|/usr/local/var/lib/smartmontools/smartd\\.|$(savestates)|g"
515 MAN_SAVESTATES = sed '/BEGIN ENABLE_SAVESTATES/,/END ENABLE_SAVESTATES/d'
518 if ENABLE_ATTRIBUTELOG
519 MAN_ATTRIBUTELOG = sed "s|/usr/local/var/lib/smartmontools/attrlog\\.|$(attributelog)|g"
521 MAN_ATTRIBUTELOG = sed '/BEGIN ENABLE_ATTRIBUTELOG/,/END ENABLE_ATTRIBUTELOG/d'
525 sed "s|CURRENT_SVN_VERSION|$(releaseversion)|g; \
526 s|CURRENT_SVN_DATE|`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`|g; \
527 s|CURRENT_SVN_REV|`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`|g; \
528 s|/usr/local/share/man/|$(mandir)/|g; \
529 s|/usr/local/sbin/|$(sbindir)/|g; \
530 s|/usr/local/etc/rc\\.d/init.d/|$(initddir)/|g; \
531 s|/usr/local/share/doc/smartmontools/examplescripts/|!exampledir!|g; \
532 s|/usr/local/share/doc/smartmontools/|$(docsdir)/|g; \
533 s|!exampledir!|$(exampledir)/|g; \
534 s|/usr/local/etc/smartd\\.conf|$(sysconfdir)/smartd.conf|g; \
535 s|/usr/local/etc/smart_drivedb\\.h|$(sysconfdir)/smart_drivedb\\.h|g" | \
536 $(MAN_CAPABILITIES) | \
538 $(MAN_SAVESTATES) | \
541 # Implicit rule 'smart%: smart%.in ...' does not work with BSD make
542 smartctl.8: smartctl.8.in Makefile svnversion.h
543 cat $(srcdir)/smartctl.8.in | $(MAN_FILTER) > $@
545 smartd.8: smartd.8.in Makefile svnversion.h
546 cat $(srcdir)/smartd.8.in | $(MAN_FILTER) > $@
548 smartd.conf.5: smartd.conf.5.in Makefile svnversion.h
549 cat $(srcdir)/smartd.conf.5.in | $(MAN_FILTER) > $@
551 # Commands to convert man pages into .html and .txt
554 #MAN2HTML = groff -man -Thtml
555 MAN2TXT = groff -man -Tascii -P'-bcou'
557 # Remove HTTP header and fix links in man2html output
558 FIXHTML = sed '1s,^Content-type.*,,' \
559 | sed 's,<A HREF="http://[-a-z/]*/man2html?\([1-8]\)+\(smart[cd][.a-z]*\)">,<A HREF="\2.\1.html">,g' \
560 | sed 's,<A HREF="http://[-a-z/]*/man2html">,<A HREF=".">,g' \
561 | sed 's,<A HREF="http://[-a-z/]*/man2html?[^"]*">\([^<]*\)</A>,\1,g' \
562 | sed 's,<A HREF="mailto:[^s][^m][^a][^"]*">\([^<]*\)</A>,\1,g'
564 # Convert man pages into .html and .txt
566 htmlman: smartctl.8.html smartd.8.html smartd.conf.5.html
568 txtman: smartctl.8.txt smartd.8.txt smartd.conf.5.txt
573 $(DOS2UNIX) < $< | $(MAN2HTML) | $(FIXHTML) > $@
576 $(DOS2UNIX) < $< | $(MAN2HTML) | $(FIXHTML) > $@
580 $(MAN2HTML) $< | $(FIXHTML) > $@
583 $(MAN2HTML) $< | $(FIXHTML) > $@
593 # Check drive database syntax
595 @if ./smartctl -B $(srcdir)/drivedb.h -P showall >/dev/null; then \
596 echo "$(srcdir)/drivedb.h: OK"; \
598 echo "$(srcdir)/drivedb.h: Syntax check failed"; exit 1; \
603 # Definitions for Windows distribution
611 distdir_win32 = $(PACKAGE)-$(VERSION).win$(win_bits)
612 distzip_win32 = $(PACKAGE)-$(VERSION).win$(win_bits).zip
613 distinst_win32 = $(PACKAGE)-$(VERSION).win$(win_bits)-setup.exe
615 exedir_win32 = $(distdir_win32)/bin
616 docdir_win32 = $(distdir_win32)/doc
619 $(exedir_win32)/smartctl.exe \
620 $(exedir_win32)/smartctl-nc.exe \
621 $(exedir_win32)/smartd.exe
625 $(exedir_win32)/syslogevt.exe
631 $(exedir_win32)/update-smart-drivedb.exe
637 $(docdir_win32)/AUTHORS.txt \
638 $(docdir_win32)/CHANGELOG.txt \
639 $(docdir_win32)/COPYING.txt \
640 $(docdir_win32)/INSTALL.txt \
641 $(docdir_win32)/NEWS.txt \
642 $(docdir_win32)/README.txt \
643 $(docdir_win32)/TODO.txt \
644 $(docdir_win32)/WARNINGS.txt \
645 $(docdir_win32)/checksums.txt \
646 $(docdir_win32)/smartd.conf \
647 $(docdir_win32)/smartctl.8.html \
648 $(docdir_win32)/smartctl.8.txt \
649 $(docdir_win32)/smartd.8.html \
650 $(docdir_win32)/smartd.8.txt \
651 $(docdir_win32)/smartd.conf.5.html \
652 $(docdir_win32)/smartd.conf.5.txt
656 $(exedir_win32)/drivedb.h
661 smartctl-nc.exe smartctl-nc.exe.tmp \
662 syslogevt.exe syslogevt.h syslogevt.o \
663 syslogevt.res.o syslogevt.rc syslogevt_*.bin \
664 update-smart-drivedb.exe \
667 # Textfile converter from package cygutils or tofrodos
668 # Note: Only use without options to be compatible with both packages
672 # Build Windows distribution
674 dist-win32: $(distzip_win32)
676 install-win32: $(distinst_win32)
679 installer-win32: $(distinst_win32)
681 distdir-win32: distdir.mkdir $(FILES_WIN32)
683 $(distzip_win32): distdir.mkdir $(FILES_WIN32)
684 @rm -fv $(distzip_win32)
685 cd $(distdir_win32) && zip -9 ../$(distzip_win32) bin/* doc/*
688 sha256sum $@ > $@.sha256
691 # Build NSIS installer
692 # Note: Only option character '-' is also compatible with Linux version of makensis
693 $(distinst_win32): os_win32/installer.nsi distdir.mkdir $(FILES_WIN32)
694 @date=`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`; \
695 rev=`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`; \
696 verstr="$(PACKAGE_VERSION) $$date $$rev "$(BUILD_INFO); \
697 echo "'$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) -DOUTFILE=$@ -DVERSTR='$$verstr' $<"; \
698 '$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) -DOUTFILE=$@ -DVERSTR="$$verstr" $<
701 sha256sum $@ > $@.sha256
703 # Build drivedb.h update tool
704 update-smart-drivedb.exe: os_win32/update-smart-drivedb.nsi
705 "$(MAKENSIS)" -V2 -NOCD -DBRANCH=$(DRIVEDB_BRANCH) $<
709 @echo "makensis: command not found. Please install NSIS from http://nsis.sourceforge.net/" 1>&2
714 rm -rf $(distdir_win32) distdir.mkdir
717 @test -d $(exedir_win32) || mkdir -pv $(exedir_win32)
718 @test -d $(docdir_win32) || mkdir -pv $(docdir_win32)
721 $(exedir_win32)/%.exe: %.exe
723 if test -n '$(STRIP)'; then $(STRIP) -s $@; else strip -s $@; fi
726 # strip would break NSIS integrity check
727 $(exedir_win32)/update-smart-drivedb.exe: update-smart-drivedb.exe
730 $(exedir_win32)/%.h: $(srcdir)/%.h
731 $(UNIX2DOS) < $< > $@
734 $(docdir_win32)/%.html: %.html
735 $(UNIX2DOS) < $< > $@
738 $(docdir_win32)/%.txt: %.txt
739 $(UNIX2DOS) < $< > $@
742 $(docdir_win32)/%.txt: $(srcdir)/%
743 $(UNIX2DOS) < $< > $@
746 $(docdir_win32)/%.conf: $(srcdir)/%.conf
747 $(UNIX2DOS) < $< > $@
750 $(docdir_win32)/checksums.txt: $(EXEFILES_WIN32)
751 (cd $(exedir_win32) && md5sum *.exe && sha1sum *.exe && sha256sum *.exe) \
754 # Build non-console version of smartctl for GSmartControl.
755 # The script below changes the word at offset 220 (Subsystem) from 3
756 # (Console) to 2 (GUI) in a copy of smartctl.exe.
757 # This will be changed when a tool (like 'editbin') is available in
758 # the Cygwin distribution
759 smartctl-nc.exe: smartctl.exe
761 cp -p smartctl.exe $@.tmp
762 @if test `od -A n -j 220 -N 2 -d $@.tmp` -eq 3; then :; \
763 else echo "invalid EXE header"; exit 1; fi
764 @echo "editbin /subsystem:windows $@.tmp"
765 @echo -ne '\002' | dd bs=1 seek=220 count=1 conv=notrunc of=$@.tmp 2>/dev/null
766 @if test `od -A n -j 220 -N 2 -d $@.tmp` -eq 2; then :; \
767 else echo "EXE patch failed"; exit 1; fi
771 # Build syslogevt.exe event message file tool
773 syslogevt.exe: syslogevt.o syslogevt.res.o
776 syslogevt.o: os_win32/syslogevt.c syslogevt.rc
777 $(CC) -c -I. -Os -o $@ $<
779 syslogevt.res.o: syslogevt.rc
782 syslogevt.rc: os_win32/syslogevt.mc
786 # Build {config,svnversion}_vc8.h for MSVC8 from MinGW {config,svnversion}.h
788 config-vc8: $(srcdir)/os_win32/config_vc8.h $(srcdir)/os_win32/svnversion_vc8.h
790 $(srcdir)/os_win32/config_vc8.h: config.h Makefile
791 sed '1i/* config_vc8.h. Generated from config.h by Makefile. */' $< | \
792 sed 's,^#define HAVE_\(ATTR_PACKED\|INTTYPES_H\|[DK_]*NTDDDISK_H\|STDINT_H\|STRINGS_H\|STRTOULL\|U*INT64_T\|UNISTD_H\|WORKING_SNPRINTF\) 1$$,/* #undef HAVE_\1 */,' | \
793 sed 's,^\(#define SMARTMONTOOLS_BUILD_HOST "[^-]*\)[^"]*,\1-pc-win32vc8,' > $@
795 $(srcdir)/os_win32/svnversion_vc8.h: svnversion.h