ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/Makefile
(Generate patch)
# Line 53 | Line 53
53   GCC45OPTS :=
54   GCC45OPTMAIN :=
55  
56 < ifeq ($(findstring debug,$(MAKECMDGOALS)),)
56 > ifeq ($(findstring nodebug,$(MAKECMDGOALS)),)
57 >  CFLAGS := -g -DDEBUG $(BASEFLAGS)
58 >  LDFLAGS += -g
59 > else
60    CFLAGS := -O2 -DNDEBUG $(BASEFLAGS)
61    ifeq ($(shell expr $(GCC_MAJOR).$(GCC_MINOR) '>=' 4.5),1)
62      CFLAGS += -flto
63      GCC45OPTS := -flto
64      GCC45OPTMAIN := -fwhole-program
65    endif
63 else
64  CFLAGS := -g -DDEBUG $(BASEFLAGS)
65  LDFLAGS += -g
66   endif
67  
68   %.o : %.cpp
# Line 80 | Line 80
80   version: ; @echo "GCC Version is: "$(GCC_MAJOR)":"$(GCC_MINOR)":"$(GCC_SUB)
81          @echo "> GCC Opt. string is: "$(GCC45OPTS)
82   debug:  gtest threads
83 < $(OBJS) : GBase.h GArgs.h
84 < gtest.o : GBase.h GArgs.h
83 > nodebug:  gtest threads
84 > gtest.o : GBase.h GArgs.h GVec.hh GList.hh GBitVec.h
85   GArgs.o : GArgs.h
86   gtest: $(OBJS) gtest.o
87          ${LINKER} ${LDFLAGS} $(GCC45OPTS) $(GCC45OPTMAIN) -o $@ ${filter-out %.a %.so, $^} ${LIBS}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines