How does one build an application against DOLFIN with scons?

Before, we had a (very simple) Makefile in each demo directory such
that the demos could be rebuilt individually and someone wanting to
write an application could just copy the Makefile somewhere else.

So, could we add a (very very simple) example somewhere that could be
used as a template?

-- 
Anders

PS: The Makefile we had before looked like this:

CFLAGS  = `pkg-config --cflags dolfin`
LIBS    = `pkg-config --libs dolfin`
CXX     = `pkg-config --variable=compiler dolfin`

DEST    = demo
OBJECTS = main.o

all: $(DEST)

install:

clean:
        -rm -f *.o core *.core $(OBJECTS) $(DEST)

$(DEST): $(OBJECTS)
         $(CXX) -o $@ $(OBJECTS) $(CFLAGS) $(LIBS)

.cpp.o:
        $(CXX) $(CFLAGS) -c $<
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to