bugGNUstep - Bugs: bug #23770, including GNUmakefile.preamble not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23770: including GNUmakefile.preamble not done?

Submitted by:  Friedrich <fridom>
Submitted on:  Sat 05 Jul 2008 06:04:43 AM UTC  
 
Category: MakefilesSeverity: 3 - Normal
Item Group: BugStatus: Works For Me
Privacy: PublicAssigned to: Nicola Pero <nico>
Open/Closed: Closed

Sat 05 Jul 2008 12:39:35 PM UTC, comment #3:

Thanks Friedrich,

no problem.

Nicola Pero <nico>
Project MemberIn charge of this item.
Sat 05 Jul 2008 12:38:34 PM UTC, comment #2:

Oh, well, that does the "right" thing. I'm sorry for then noise

Regards
Friedrich

Friedrich <fridom>
Sat 05 Jul 2008 11:02:43 AM UTC, comment #1:

Thanks Friedrich

you are compiling an Objective-C file, so you need to use

# Additional flags to pass to Objective C compiler
ADDITIONAL_OBJCFLAGS += -ggdb -std=c99

the variable you used (ADDITIONAL_CFLAGS) is only used
when compiling C files. ;-)

I know it can be a bit confusing at the beginning.

Anyway, try ADDITIONAL_OBJCFLAGS and let me know if that works. :-)

Thanks

Nicola Pero <nico>
Project MemberIn charge of this item.
Sat 05 Jul 2008 06:04:43 AM UTC, original submission:

I have the following GNUmakefile:
#
# GNUmakefile - Generated by ProjectCenter
#

include $(GNUSTEP_MAKEFILES)/common.make

#
# Tool
#
VERSION = 0.1
PACKAGE_NAME = ArrayCreate
TOOL_NAME = ArrayCreate
test_TOOL_ICON =

#
# Resource files
#
ArrayCreate_RESOURCE_FILES = \
Resources/Version \

#
# Other sources
#
ArrayCreate_OBJC_FILES += \
array_create.m

#
# Makefiles
#
include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/tool.make
-include GNUmakefile.postamble

with the following GNUmakefile.preample

#
# GNUmakefile.preamble - Generated by ProjectCenter
#

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS +=

# Additional flags to pass to Objective C compiler
ADDITIONAL_OBJCFLAGS +=

# Additional flags to pass to C compiler
ADDITIONAL_CFLAGS += -ggdb -std=c99

# Additional flags to pass to the linker
ADDITIONAL_LDFLAGS +=

# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS +=

# Additional library directories the linker should search
ADDITIONAL_LIB_DIRS +=

# Additional TOOL libraries to link
ADDITIONAL_TOOL_LIBS +=

well now see this out make messages=yes
This is gnustep-make 2.0.6. Type 'make print-gnustep-make-help' for help.
Making all for tool ArrayCreate...
cd .; \
/usr/local/GNUstep/System/Library/Makefiles/mkinstalldirs ./obj
gcc array_create.m -c \
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -g -fno-strict-aliasing -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I/home/frido/GNUstep/Library/Headers -I/usr/local/GNUstep/Local/Library/Headers -I/usr/local/GNUstep/System/Library/Headers \
-o obj/array_create.o
array_create.m: In Funktion »main«:
array_create.m:11: Warnung: Variable »copy_of_arr« wird nicht verwendet
array_create.m:5: Warnung: Variable »i« wird nicht verwendet
gcc -rdynamic -fgnu-runtime -o obj/ArrayCreate \
./obj/array_create.o \
-L/home/frido/GNUstep/Library/Libraries -L/usr/local/GNUstep/Local/Library/Libraries -L/usr/local/GNUstep/System/Library/Libraries -lgnustep-base -lpthread -lobjc -lm

So why isn't the GNUmakefile.preamble used?

Friedrich <fridom>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nico (Posted a comment)
  • -unavailable- added by fridom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 Jul 2008 12:39:35 PM UTCnicoStatusNone=>Works For Me
      Open/ClosedOpen=>Closed
    Sat 05 Jul 2008 11:14:57 AM UTCnicoAssigned toNone=>nico

    Back to the top


    Powered by Savane 3.1-cleanup1