diff --git a/contrib/Netgen/Makefile b/contrib/Netgen/Makefile
index ff5cc4fe321d98410d2b569b7b8abba4feea2d71..12bec64c347bb9d0ee535353cc9e848e6fab2349 100644
--- a/contrib/Netgen/Makefile
+++ b/contrib/Netgen/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.24 2008-01-19 00:59:31 geuzaine Exp $
+# $Id: Makefile,v 1.25 2008-01-20 11:30:40 geuzaine Exp $
 #
 # Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
 #
@@ -140,6 +140,10 @@ ${LIB}: ${OBJ}
            mv -f ${notdir ${<:.cpp=${OBJEXT}}} ${<:.cpp=${OBJEXT}};\
         fi
 
+# don't apply ugly hack above for files in this directory
+nllib_addon${OBJEXT}:
+	${CXX} ${CFLAGS} ${DASH}c $<
+
 clean:
 	rm -f *${OBJEXT} libsrc/*/*${OBJEXT}