diff mbox

Makefile.inc: remove line that is commented out

Message ID 1399066407-25621-1-git-send-email-anders.roxell@linaro.org
State Rejected
Headers show

Commit Message

Anders Roxell May 2, 2014, 9:33 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 Makefile.inc | 1 -
 1 file changed, 1 deletion(-)

Comments

Maxim Uvarov May 5, 2014, 9:47 a.m. UTC | #1
No, that line has to be here for quick changing to debug version.

Thanks,
Maxim.

On 05/03/2014 01:33 AM, Anders Roxell wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>   Makefile.inc | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/Makefile.inc b/Makefile.inc
> index a5aeb8b..019836a 100644
> --- a/Makefile.inc
> +++ b/Makefile.inc
> @@ -19,7 +19,6 @@ COPY   := cp -r
>   
>   EXTRA_CFLAGS += -DODP_DEBUG=1
>   EXTRA_CFLAGS += -O3
> -#EXTRA_CFLAGS += -O0 -g
>   EXTRA_CFLAGS += -pthread
>   EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
>   EXTRA_CFLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith
Anders Roxell May 5, 2014, 9:52 a.m. UTC | #2
On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> No, that line has to be here for quick changing to debug version.
>

I hope that was a joke right?

whats the problem with:
make CFLAGS="-O0 -g"

Cheers,
Anders


>
> Thanks,
> Maxim.
>
>
> On 05/03/2014 01:33 AM, Anders Roxell wrote:
>
>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>> ---
>>   Makefile.inc | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/Makefile.inc b/Makefile.inc
>> index a5aeb8b..019836a 100644
>> --- a/Makefile.inc
>> +++ b/Makefile.inc
>> @@ -19,7 +19,6 @@ COPY   := cp -r
>>     EXTRA_CFLAGS += -DODP_DEBUG=1
>>   EXTRA_CFLAGS += -O3
>> -#EXTRA_CFLAGS += -O0 -g
>>   EXTRA_CFLAGS += -pthread
>>   EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
>> -Wmissing-prototypes
>>   EXTRA_CFLAGS += -Wmissing-declarations -Wold-style-definition
>> -Wpointer-arith
>>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Maxim Uvarov May 5, 2014, 9:59 a.m. UTC | #3
On 05/05/2014 01:52 PM, Anders Roxell wrote:
>
>
>
> On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org 
> <mailto:maxim.uvarov@linaro.org>> wrote:
>
>     No, that line has to be here for quick changing to debug version.
>
>
> I hope that was a joke right?
>
> whats the problem with:
> make CFLAGS="-O0 -g"
>
> Cheers,
> Anders
cc -c -MD -I../../include -I./include -I./include/api -DODP_DEBUG=1 -O3 
-pthread -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wold-style-definition -Wpointer-arith 
-Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral 
-Wformat-security -Wundef -Wwrite-strings -O0 -g -o obj/odp_queue.o 
source/odp_queue.c

first option has more priority then second, right?

Maxim.


>
>     Thanks,
>     Maxim.
>
>
>     On 05/03/2014 01:33 AM, Anders Roxell wrote:
>
>         Signed-off-by: Anders Roxell <anders.roxell@linaro.org
>         <mailto:anders.roxell@linaro.org>>
>         ---
>           Makefile.inc | 1 -
>           1 file changed, 1 deletion(-)
>
>         diff --git a/Makefile.inc b/Makefile.inc
>         index a5aeb8b..019836a 100644
>         --- a/Makefile.inc
>         +++ b/Makefile.inc
>         @@ -19,7 +19,6 @@ COPY   := cp -r
>             EXTRA_CFLAGS += -DODP_DEBUG=1
>           EXTRA_CFLAGS += -O3
>         -#EXTRA_CFLAGS += -O0 -g
>           EXTRA_CFLAGS += -pthread
>           EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
>         -Wmissing-prototypes
>           EXTRA_CFLAGS += -Wmissing-declarations
>         -Wold-style-definition -Wpointer-arith
>
>
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
Ola Liljedahl May 5, 2014, 12:08 p.m. UTC | #4
Another approach perhaps?

ifeq ($(DEBUG),yes)
EXTRA_CFLAGS += -O0 -g
EXTRA_CFLAGS += -DODP_DEBUG=1
else
EXTRA_CFLAGS += -O3
endif

$ make DEBUG=yes

On 5 May 2014 11:59, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> On 05/05/2014 01:52 PM, Anders Roxell wrote:
>
>>
>>
>>
>> On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org
>> <mailto:maxim.uvarov@linaro.org>> wrote:
>>
>>     No, that line has to be here for quick changing to debug version.
>>
>>
>> I hope that was a joke right?
>>
>> whats the problem with:
>> make CFLAGS="-O0 -g"
>>
>> Cheers,
>> Anders
>
> cc -c -MD -I../../include -I./include -I./include/api -DODP_DEBUG=1 -O3
> -pthread -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align
> -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef
> -Wwrite-strings -O0 -g -o obj/odp_queue.o source/odp_queue.c
>
> first option has more priority then second, right?
>
> Maxim.
>
>
>>
>>     Thanks,
>>     Maxim.
>>
>>
>>     On 05/03/2014 01:33 AM, Anders Roxell wrote:
>>
>>         Signed-off-by: Anders Roxell <anders.roxell@linaro.org
>>         <mailto:anders.roxell@linaro.org>>
>>
>>         ---
>>           Makefile.inc | 1 -
>>           1 file changed, 1 deletion(-)
>>
>>         diff --git a/Makefile.inc b/Makefile.inc
>>         index a5aeb8b..019836a 100644
>>         --- a/Makefile.inc
>>         +++ b/Makefile.inc
>>         @@ -19,7 +19,6 @@ COPY   := cp -r
>>             EXTRA_CFLAGS += -DODP_DEBUG=1
>>           EXTRA_CFLAGS += -O3
>>         -#EXTRA_CFLAGS += -O0 -g
>>           EXTRA_CFLAGS += -pthread
>>           EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
>>         -Wmissing-prototypes
>>           EXTRA_CFLAGS += -Wmissing-declarations
>>         -Wold-style-definition -Wpointer-arith
>>
>>
>>
>>     _______________________________________________
>>     lng-odp mailing list
>>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>>     http://lists.linaro.org/mailman/listinfo/lng-odp
>>
>>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
Ciprian Barbu May 5, 2014, 12:21 p.m. UTC | #5
Hi,


On Mon, May 5, 2014 at 3:08 PM, Ola Liljedahl <ola.liljedahl@linaro.org>wrote:

> Another approach perhaps?
>
> ifeq ($(DEBUG),yes)
> EXTRA_CFLAGS += -O0 -g
> EXTRA_CFLAGS += -DODP_DEBUG=1
> else
> EXTRA_CFLAGS += -O3
> endif
>
> $ make DEBUG=yes
>

That was my thought as well.


>
> On 5 May 2014 11:59, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> > On 05/05/2014 01:52 PM, Anders Roxell wrote:
> >
> >>
> >>
> >>
> >> On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org
> >> <mailto:maxim.uvarov@linaro.org>> wrote:
> >>
> >>     No, that line has to be here for quick changing to debug version.
> >>
> >>
> >> I hope that was a joke right?
> >>
> >> whats the problem with:
> >> make CFLAGS="-O0 -g"
> >>
> >> Cheers,
> >> Anders
> >
> > cc -c -MD -I../../include -I./include -I./include/api -DODP_DEBUG=1 -O3
> > -pthread -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
> > -Wmissing-declarations -Wold-style-definition -Wpointer-arith
> -Wcast-align
> > -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security
> -Wundef
> > -Wwrite-strings -O0 -g -o obj/odp_queue.o source/odp_queue.c
> >
> > first option has more priority then second, right?
> >
> > Maxim.
> >
> >
> >>
> >>     Thanks,
> >>     Maxim.
> >>
> >>
> >>     On 05/03/2014 01:33 AM, Anders Roxell wrote:
> >>
> >>         Signed-off-by: Anders Roxell <anders.roxell@linaro.org
> >>         <mailto:anders.roxell@linaro.org>>
> >>
> >>         ---
> >>           Makefile.inc | 1 -
> >>           1 file changed, 1 deletion(-)
> >>
> >>         diff --git a/Makefile.inc b/Makefile.inc
> >>         index a5aeb8b..019836a 100644
> >>         --- a/Makefile.inc
> >>         +++ b/Makefile.inc
> >>         @@ -19,7 +19,6 @@ COPY   := cp -r
> >>             EXTRA_CFLAGS += -DODP_DEBUG=1
> >>           EXTRA_CFLAGS += -O3
> >>         -#EXTRA_CFLAGS += -O0 -g
> >>           EXTRA_CFLAGS += -pthread
> >>           EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
> >>         -Wmissing-prototypes
> >>           EXTRA_CFLAGS += -Wmissing-declarations
> >>         -Wold-style-definition -Wpointer-arith
> >>
> >>
> >>
> >>     _______________________________________________
> >>     lng-odp mailing list
> >>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
> >>     http://lists.linaro.org/mailman/listinfo/lng-odp
> >>
> >>
> >
> >
> > _______________________________________________
> > lng-odp mailing list
> > lng-odp@lists.linaro.org
> > http://lists.linaro.org/mailman/listinfo/lng-odp
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Anders Roxell May 5, 2014, 12:25 p.m. UTC | #6
On 5 May 2014 11:59, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> On 05/05/2014 01:52 PM, Anders Roxell wrote:
>
>
>>
>>
>> On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org <mailto:
>> maxim.uvarov@linaro.org>> wrote:
>>
>>     No, that line has to be here for quick changing to debug version.
>>
>>
>> I hope that was a joke right?
>>
>> whats the problem with:
>> make CFLAGS="-O0 -g"
>>
>> Cheers,
>> Anders
>>
> cc -c -MD -I../../include -I./include -I./include/api -DODP_DEBUG=1 -O3
> -pthread -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align
> -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef
> -Wwrite-strings -O0 -g -o obj/odp_queue.o source/odp_queue.c
>
> first option has more priority then second, right?
>

argh... you right! I missed that, I'm sorry!


>
> Maxim.
>
>
>
>>     Thanks,
>>     Maxim.
>>
>>
>>     On 05/03/2014 01:33 AM, Anders Roxell wrote:
>>
>>         Signed-off-by: Anders Roxell <anders.roxell@linaro.org
>>         <mailto:anders.roxell@linaro.org>>
>>
>>         ---
>>           Makefile.inc | 1 -
>>           1 file changed, 1 deletion(-)
>>
>>         diff --git a/Makefile.inc b/Makefile.inc
>>         index a5aeb8b..019836a 100644
>>         --- a/Makefile.inc
>>         +++ b/Makefile.inc
>>         @@ -19,7 +19,6 @@ COPY   := cp -r
>>             EXTRA_CFLAGS += -DODP_DEBUG=1
>>           EXTRA_CFLAGS += -O3
>>         -#EXTRA_CFLAGS += -O0 -g
>>           EXTRA_CFLAGS += -pthread
>>           EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
>>         -Wmissing-prototypes
>>           EXTRA_CFLAGS += -Wmissing-declarations
>>         -Wold-style-definition -Wpointer-arith
>>
>>
>>
>>     _______________________________________________
>>     lng-odp mailing list
>>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>>     http://lists.linaro.org/mailman/listinfo/lng-odp
>>
>>
>>
>
Anders Roxell May 5, 2014, 12:26 p.m. UTC | #7
On 5 May 2014 14:08, Ola Liljedahl <ola.liljedahl@linaro.org> wrote:

> Another approach perhaps?
>
> ifeq ($(DEBUG),yes)
> EXTRA_CFLAGS += -O0 -g
> EXTRA_CFLAGS += -DODP_DEBUG=1
> else
> EXTRA_CFLAGS += -O3
> endif
>
> $ make DEBUG=yes
>

+1

Cheers,
Anders


>
> On 5 May 2014 11:59, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> > On 05/05/2014 01:52 PM, Anders Roxell wrote:
> >
> >>
> >>
> >>
> >> On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org
> >> <mailto:maxim.uvarov@linaro.org>> wrote:
> >>
> >>     No, that line has to be here for quick changing to debug version.
> >>
> >>
> >> I hope that was a joke right?
> >>
> >> whats the problem with:
> >> make CFLAGS="-O0 -g"
> >>
> >> Cheers,
> >> Anders
> >
> > cc -c -MD -I../../include -I./include -I./include/api -DODP_DEBUG=1 -O3
> > -pthread -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
> > -Wmissing-declarations -Wold-style-definition -Wpointer-arith
> -Wcast-align
> > -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security
> -Wundef
> > -Wwrite-strings -O0 -g -o obj/odp_queue.o source/odp_queue.c
> >
> > first option has more priority then second, right?
> >
> > Maxim.
> >
> >
> >>
> >>     Thanks,
> >>     Maxim.
> >>
> >>
> >>     On 05/03/2014 01:33 AM, Anders Roxell wrote:
> >>
> >>         Signed-off-by: Anders Roxell <anders.roxell@linaro.org
> >>         <mailto:anders.roxell@linaro.org>>
> >>
> >>         ---
> >>           Makefile.inc | 1 -
> >>           1 file changed, 1 deletion(-)
> >>
> >>         diff --git a/Makefile.inc b/Makefile.inc
> >>         index a5aeb8b..019836a 100644
> >>         --- a/Makefile.inc
> >>         +++ b/Makefile.inc
> >>         @@ -19,7 +19,6 @@ COPY   := cp -r
> >>             EXTRA_CFLAGS += -DODP_DEBUG=1
> >>           EXTRA_CFLAGS += -O3
> >>         -#EXTRA_CFLAGS += -O0 -g
> >>           EXTRA_CFLAGS += -pthread
> >>           EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
> >>         -Wmissing-prototypes
> >>           EXTRA_CFLAGS += -Wmissing-declarations
> >>         -Wold-style-definition -Wpointer-arith
> >>
> >>
> >>
> >>     _______________________________________________
> >>     lng-odp mailing list
> >>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
> >>     http://lists.linaro.org/mailman/listinfo/lng-odp
> >>
> >>
> >
> >
> > _______________________________________________
> > lng-odp mailing list
> > lng-odp@lists.linaro.org
> > http://lists.linaro.org/mailman/listinfo/lng-odp
>
Mike Holmes May 5, 2014, 12:37 p.m. UTC | #8
I also started to type that +1


On 5 May 2014 08:26, Anders Roxell <anders.roxell@linaro.org> wrote:

>
>
>
> On 5 May 2014 14:08, Ola Liljedahl <ola.liljedahl@linaro.org> wrote:
>
>> Another approach perhaps?
>>
>> ifeq ($(DEBUG),yes)
>> EXTRA_CFLAGS += -O0 -g
>> EXTRA_CFLAGS += -DODP_DEBUG=1
>> else
>> EXTRA_CFLAGS += -O3
>> endif
>>
>> $ make DEBUG=yes
>>
>
> +1
>
> Cheers,
> Anders
>
>
>>
>> On 5 May 2014 11:59, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>> > On 05/05/2014 01:52 PM, Anders Roxell wrote:
>> >
>> >>
>> >>
>> >>
>> >> On 5 May 2014 11:47, Maxim Uvarov <maxim.uvarov@linaro.org
>> >> <mailto:maxim.uvarov@linaro.org>> wrote:
>> >>
>> >>     No, that line has to be here for quick changing to debug version.
>> >>
>> >>
>> >> I hope that was a joke right?
>> >>
>> >> whats the problem with:
>> >> make CFLAGS="-O0 -g"
>> >>
>> >> Cheers,
>> >> Anders
>> >
>> > cc -c -MD -I../../include -I./include -I./include/api -DODP_DEBUG=1 -O3
>> > -pthread -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
>> > -Wmissing-declarations -Wold-style-definition -Wpointer-arith
>> -Wcast-align
>> > -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security
>> -Wundef
>> > -Wwrite-strings -O0 -g -o obj/odp_queue.o source/odp_queue.c
>> >
>> > first option has more priority then second, right?
>> >
>> > Maxim.
>> >
>> >
>> >>
>> >>     Thanks,
>> >>     Maxim.
>> >>
>> >>
>> >>     On 05/03/2014 01:33 AM, Anders Roxell wrote:
>> >>
>> >>         Signed-off-by: Anders Roxell <anders.roxell@linaro.org
>> >>         <mailto:anders.roxell@linaro.org>>
>> >>
>> >>         ---
>> >>           Makefile.inc | 1 -
>> >>           1 file changed, 1 deletion(-)
>> >>
>> >>         diff --git a/Makefile.inc b/Makefile.inc
>> >>         index a5aeb8b..019836a 100644
>> >>         --- a/Makefile.inc
>> >>         +++ b/Makefile.inc
>> >>         @@ -19,7 +19,6 @@ COPY   := cp -r
>> >>             EXTRA_CFLAGS += -DODP_DEBUG=1
>> >>           EXTRA_CFLAGS += -O3
>> >>         -#EXTRA_CFLAGS += -O0 -g
>> >>           EXTRA_CFLAGS += -pthread
>> >>           EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes
>> >>         -Wmissing-prototypes
>> >>           EXTRA_CFLAGS += -Wmissing-declarations
>> >>         -Wold-style-definition -Wpointer-arith
>> >>
>> >>
>> >>
>> >>     _______________________________________________
>> >>     lng-odp mailing list
>> >>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>> >>     http://lists.linaro.org/mailman/listinfo/lng-odp
>> >>
>> >>
>> >
>> >
>> > _______________________________________________
>> > lng-odp mailing list
>> > lng-odp@lists.linaro.org
>> > http://lists.linaro.org/mailman/listinfo/lng-odp
>>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
diff mbox

Patch

diff --git a/Makefile.inc b/Makefile.inc
index a5aeb8b..019836a 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -19,7 +19,6 @@  COPY   := cp -r
 
 EXTRA_CFLAGS += -DODP_DEBUG=1
 EXTRA_CFLAGS += -O3
-#EXTRA_CFLAGS += -O0 -g
 EXTRA_CFLAGS += -pthread
 EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
 EXTRA_CFLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith