~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/demo/pde/dg/Makefile

  • Committer: Anders Logg
  • Date: 2007-01-10 09:04:44 UTC
  • mfrom: (1689.1.221 trunk)
  • Revision ID: logg@simula.no-20070110090444-ecyux3n1qnei4i8h
RemoveĀ oldĀ head

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CFLAGS  = `pkg-config --cflags dolfin`
 
2
LIBS    = `pkg-config --libs dolfin`
 
3
CXX     = `pkg-config --variable=compiler dolfin`
 
4
 
 
5
DEST    = dolfin-dg
 
6
OBJECTS = main.o
 
7
 
 
8
all: $(DEST)
 
9
 
 
10
clean:
 
11
        -rm -f *.o core *.core $(OBJECTS) $(DEST)
 
12
 
 
13
$(DEST): $(OBJECTS)
 
14
         $(CXX) -o $@ $(OBJECTS) $(CFLAGS) $(LIBS)
 
15
 
 
16
.cpp.o:
 
17
        $(CXX) $(CFLAGS) -c $<