From: erg Date: Mon, 12 Mar 2007 22:48:20 +0000 (+0000) Subject: Modify makefiles and common.h to support Windows build X-Git-Tag: LAST_LIBGRAPH~32^2~5637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7474cba9ed3b635452f6949dc670d4767b3ac883;p=graphviz Modify makefiles and common.h to support Windows build --- diff --git a/cmd/lneato/Makefile.am b/cmd/lneato/Makefile.am index 9d3fd439b..541f41e3e 100644 --- a/cmd/lneato/Makefile.am +++ b/cmd/lneato/Makefile.am @@ -8,11 +8,21 @@ pdf = lneato.pdf man_MANS = $(man) pdf_DATA = $(pdf) +if WITH_WIN32 +bin_PROGRAMS = lneato +else bin_SCRIPTS = lneato +endif +AM_CFLAGS = -DLNEATO +if WITH_WIN32 +lneato_SOURCES = ${top_srcdir}/cmd/dotty/mswin32/dotty.c +lneato_LDADD = -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 +else lneato: ${top_srcdir}/cmd/lneato/lneato.sh cp ${top_srcdir}/cmd/lneato/lneato.sh lneato chmod +x lneato +endif .1.pdf: -groff -Tps -man $< | ps2pdf - - >$@ @@ -20,4 +30,4 @@ lneato: ${top_srcdir}/cmd/lneato/lneato.sh EXTRA_DIST = $(man) $(pdf) lneato.bsh lneato.ksh lneato.sh \ Makefile.old mswin32 -DISTCLEANFILES = $(bin_SCRIPTS) $(pdf) +DISTCLEANFILES = lneato $(pdf)