Commit 8dc7a13d authored by Backofen, Rainer's avatar Backofen, Rainer
Browse files

include possibility to store objects during make in a special directory...

include possibility to store objects during make in a special directory OBJDIR, OBJDIR not defined in Makefile, then default is ./ 
parent ab2fbf6a
......@@ -115,7 +115,12 @@ ifeq ($(strip $(USE_OPENMP)), 1)
endif
endif
# ============================================================================
# ===== object directory =====================================================
# ============================================================================
ifeq ($(OBJDIR),)
OBJDIR=.
endif
# ============================================================================
# ===== libtool linking ======================================================
# ============================================================================
......@@ -136,11 +141,11 @@ all :
make $(PROGRAMS)
clean:
-rm -rf *.o
-rm -rf *.o $(OBJDIR)/*.o
-rm -rf $(PROGRAMS)
.cc.o: $*.cc
$(COMPILE) $(DEFS) $(INCLUDES) $(CPPFLAGS) -c -o $*.o $^
$(COMPILE) $(DEFS) $(INCLUDES) $(CPPFLAGS) -c -o $(OBJDIR)/$*.o $^
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment