]> granicus.if.org Git - graphviz/commitdiff
Modify makefiles and common.h to support Windows build
authorerg <devnull@localhost>
Mon, 12 Mar 2007 22:48:19 +0000 (22:48 +0000)
committererg <devnull@localhost>
Mon, 12 Mar 2007 22:48:19 +0000 (22:48 +0000)
cmd/dotty/Makefile.am

index 887180c6a9c60f41288a7b6032db77a911543d40..33367c8d2316fa9408deea7a66e897e264663b40 100644 (file)
@@ -9,13 +9,22 @@ pdfdir = $(pkgdatadir)/doc/pdf
 
 man_MANS = $(man)
 pdf_DATA = $(pdf)
+if WITH_WIN32
+bin_PROGRAMS = dotty
+else
 bin_SCRIPTS = dotty
+endif
 lefty_DATA = dotty.lefty dotty_draw.lefty dotty_edit.lefty \
         dotty_layout.lefty dotty_ui.lefty
 
+if WITH_WIN32
+dotty_SOURCES = mswin32/dotty.c
+dotty_LDADD = -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
+else
 dotty: $(top_srcdir)/cmd/dotty/dotty.sh
        cp $(top_srcdir)/cmd/dotty/dotty.sh dotty
        chmod +x dotty
+endif
 
 .1.pdf:
        -groff -Tps -man $< | ps2pdf - - >$@