diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-07-09 02:37:10 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-07-09 02:37:10 +0000 |
commit | b9702fd55d7ed6d94f93a207014059bcf3578a6a (patch) | |
tree | 3956f63c9b00a48c8081361e3431fd16603fe224 /externals/grill/vasp/makefile.pd-linux | |
parent | 9faada387fd8557a8ea69f2ec303dc28edbe44d6 (diff) |
""
svn path=/trunk/; revision=767
Diffstat (limited to 'externals/grill/vasp/makefile.pd-linux')
-rw-r--r-- | externals/grill/vasp/makefile.pd-linux | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/externals/grill/vasp/makefile.pd-linux b/externals/grill/vasp/makefile.pd-linux index 4caa0097..04d971ef 100644 --- a/externals/grill/vasp/makefile.pd-linux +++ b/externals/grill/vasp/makefile.pd-linux @@ -24,6 +24,16 @@ LDFLAGS=-Wl,-s LIBS=m + +ifdef FLEXT_SHARED +CFLAGS+=-DFLEXT_SHARED +LDFLAGS+=-Bdynamic +LINKFLEXT=-lflext +else +LINKFLEXT=$(FLEXTLIB) +endif + + # ---------------------------------------------- # the rest can stay untouched # ---------------------------------------------- @@ -48,8 +58,8 @@ $(TARGDIR): $(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ -$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) - $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -o $@ +$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) + $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -L$(FLEXTPATH) $(LINKFLEXT) -o $@ strip --strip-unneeded $@ chmod 755 $@ |