]> granicus.if.org Git - graphviz/commitdiff
make smyrna_static when --enable-static
authorellson <devnull@localhost>
Tue, 26 May 2009 22:49:24 +0000 (22:49 +0000)
committerellson <devnull@localhost>
Tue, 26 May 2009 22:49:24 +0000 (22:49 +0000)
cmd/smyrna/Makefile.am

index 300adf4cee47dc1d2362f4e81a7134615c2c2f6f..5cf10d3c48abcdb74a70565e3061497a37803256 100644 (file)
@@ -13,6 +13,16 @@ AM_CPPFLAGS = \
         -I$(top_srcdir)/cmd/smyrna/gui \
        $(GTK_CFLAGS) $(GLUT_CFLAGS) $(GTKGLEXT_CFLAGS) $(GLADE_CFLAGS) $(FREETYPE2_CFLAGS) $(FONTCONFIG_CFLAGS) $(GTS_CFLAGS)
 
+bin_PROGRAMS =
+if WITH_SMYRNA
+if ENABLE_SHARED
+bin_PROGRAMS += smyrna 
+endif
+if ENABLE_STATIC
+bin_PROGRAMS += smyrna_static
+endif
+endif
+
 noinst_HEADERS = btree.h draw.h filter.h glexpose.h glmotion.h gltemplate.h \
        hier.h materials.h selection.h smyrnadefs.h support.h topview.h \
        topviewdata.h topviewdefs.h trackball.h tvnodes.h viewport.h \
@@ -20,9 +30,6 @@ noinst_HEADERS = btree.h draw.h filter.h glexpose.h glmotion.h gltemplate.h \
        gui/callbacks.h gui/datalistcallbacks.h gui/filterscallbacks.h \
        gui/glmenu.h gui/gui.h gui/menucallbacks.h gui/toolboxcallbacks.h md5.h \
        gui/topviewsettings.h gui/beacon.h
-if WITH_SMYRNA
-bin_PROGRAMS = smyrna
-endif
 
 smyrna_SOURCES = btree.c draw.c filter.c glexpose.c glmotion.c gltemplate.c \
        hier.c main.c selection.c support.c template.c topview.c topviewdata.c \
@@ -41,4 +48,14 @@ smyrna_LDADD = $(top_builddir)/lib/cgraph/libcgraph_C.la \
                $(GTK_LIBS) $(GLUT_LIBS) $(GTKGLEXT_LIBS) $(GLADE_LIBS) $(EXPAT_LIBS) $(GTS_LIBS) \
                $(EXTRA_SMYRNA_LDFLAGS)
 
+smyrna_static_SOURCES = $(smyrna_SOURCES)
+smyrna_static_LDADD = $(top_builddir)/lib/cgraph/libcgraph_C.la \
+               $(top_builddir)/lib/cdt/libcdt_C.la \
+               $(top_builddir)/lib/xdot/libxdot_C.la \
+               $(top_builddir)/lib/glcomp/libglcomp_C.la \
+               $(top_builddir)/lib/topfish/libtopfish_C.la \
+               $(top_builddir)/lib/common/libcommon_C.la \
+               $(top_builddir)/lib/neatogen/libneatogen_C.la \
+               $(GTK_LIBS) $(GLUT_LIBS) $(GTKGLEXT_LIBS) $(GLADE_LIBS) $(EXPAT_LIBS) $(GTS_LIBS)
+
 EXTRA_DIST = smyrna.vcproj