Skip to content
Snippets Groups Projects
Commit c819eb9d authored by Toni G's avatar Toni G
Browse files

Merge branch 'molfiles-module' of github.com:plumed/plumed2 into molfiles-module

parents 43c904cd c390c694
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
# if unset, use normal CXX
ifndef CXXDEP
CXXDEP=$(CXX)
CCDEP=$(CC)
endif
# rule for c++
......@@ -19,7 +20,16 @@ endif
# rule for c
%.o: %.c
$(CXXDEP) -c -MM -MF$*.d $(CPPFLAGS) $(ADDCPPFLAGS) $(CFLAGS) $*.c -o $*.o
@cp -f $*.d $*.d.tmp
@-test -d deps || mkdir deps
@sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \
sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
@mv $*.d deps/$*.d
@rm -f $*.d.tmp
ifndef XLF
$(CC) -c $(CPPFLAGS) $(ADDCPPFLAGS) $(CFLAGS) $*.c -o $*.o
endif
#
CLEANLIST=*~ *.tmp *.xxd *.o *.so *.dylib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment