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

Group
 
 

bug #23770: including GNUmakefile.preamble not done?

Submitter:  Friedrich <fridom>
Submitted:  Sat 05 Jul 2008 06:04:43 AM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  Bug Status:  Works For Me
Privacy:  Public Assigned to:  nico
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Thanks Friedrich,

no problem.

Nicola Pero <nico>
Group Member
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>
Group Member
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-07-05 nico StatusNone Works For Me
        Open/ClosedOpen Closed
    2008-07-05 nico Assigned toNone nico

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code