Professional Web Applications Themes

Make files? - Mac Programming

Hello: I am making a command line application using Xcode and am using the 'standard tool' project template. Has anyone setup Xcode to automatically make make and configure files. (THis app will be portable accross *NIX platforms) I want the users to do the standard ../configure make make install I know how to do this manually but was wondering if Xcode can generate the make and configure files automatically. THanks....

  1. #1

    Default Make files?

    Hello:

    I am making a command line application using Xcode and am using the
    'standard tool' project template. Has anyone setup Xcode to automatically
    make make and configure files. (THis app will be portable accross *NIX
    platforms) I want the users to do the standard

    ../configure
    make
    make install


    I know how to do this manually but was wondering if Xcode can generate the
    make and configure files automatically.


    THanks.



    Eli Guest

  2. #2

    Default Re: Make files?

    In article <cas60d$q54$cac.psu.edu>, "Eli Hughes" <edu>
    wrote:
     

    No. Xcode doesn't use make. If you want to use make, you should build the
    makefile by hand and then create a target in Xcode which executes the makefile
    (but I don't remember exactly which option that is in Xcode UI).

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  3. #3

    Default Re: Make files?

    In article <cas60d$q54$cac.psu.edu>,
    "Eli Hughes" <edu> wrote:
     

    I recently downloaded the source for a portable command line
    application, and revised the makefile to link on OS X. (I am telling you
    this because I had some difficulty getting from XCode what its actual
    arguments to the GNU tools were.)

    Here is the relevant excerpt from the Makefile. The critical link is the
    "make" variable LINK_ARGS. :

    # Mac OS X

    CC = gcc
    BINDING =
    LINK_ARGS = -framework System


    # Sun Solaris 2.6

    #CC = cc
    #BINDING = -Bstatic
    #LINK_ARGS =

    # SGI IRIX 6.5 with MIPSPro C compiler (I don't have static
    # libraries loaded on this machine.)

    #CC = cc
    #BINDING =
    #LINK_ARGS =

    COMMON_OBJ = astro.o database.o memdb.o

    HDREAD_OBJ = cachedb.o calendar.o chart.o hdread.o \
    htmlout.o gifout.o graphics.o palmread.o \
    palmrec.o psrtext.o pstampr.o \
    trendfit.o units.o xdsub.o $(COMMON_OBJ)

    hdread: $(HDREAD_OBJ)
    $(CC) $(CFLAGS) -o hdread $(HDREAD_OBJ) $(LINK_ARGS) -lm
    rm -f core
    David Guest

  4. #4

    Default Re: Make files?

    In article <sf.sbcglobal.net>,
    David Phillip Oster <org> wrote:
     

    -framework System makes no sense. The System "framework" isn't really a
    framework, and libSystem.B.dylib is automatically included by the
    compiler (unless you pass certain very unusual compiler flags).

    In other words, this change shouldn't have been necessary in the first
    place.

    -Eric

    --
    Eric Albert stanford.edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

  5. #5

    Default Re: Make files?

    In article <mit.edu>,
    Miro Jurisic <org> wrote:
     

    Create a "legacy target" or "makefile target".

    -- Uli
    Uli Guest

  6. #6

    Default Re: Make files?

    In article <stanford.edu>,
    Eric Albert <stanford.edu> wrote:
     

    without -framework System, the command line was just:

    gcc file1.o file2.o file3.o ... fileN.o -lm

    which generated a whole slew of linker error messages. Adding
    "-framework System" and the linker error messages vanished. The program
    was John Walker's desktop utilities to support "Eat Watch", his Palm
    Pilot program to support his "The Hacker's Diet".
    David Guest

  7. #7

    Default Re: Make files?

    In article <sf.sbcglobal.net>,
    David Phillip Oster <org> wrote:
     
    >
    > without -framework System, the command line was just:
    >
    > gcc file1.o file2.o file3.o ... fileN.o -lm
    >
    > which generated a whole slew of linker error messages. Adding
    > "-framework System" and the linker error messages vanished. The program
    > was John Walker's desktop utilities to support "Eat Watch", his Palm
    > Pilot program to support his "The Hacker's Diet".[/ref]

    That doesn't make too much sense.

    Anyway, I just downloaded the code from
    <http://www.fourmilab.ch/hackdiet/palm/> (at the bottom of the page),
    opened the Makefile, commented out the BINDING = -static line, and
    everything built successfully on 10.3.4. But that Makefile didn't have
    any LINK_ARGS lines, so it's different from yours. Where did your copy
    come from?

    -Eric

    --
    Eric Albert stanford.edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

Similar Threads

  1. Can I make smaller pdf files from existing pdf?
    By Maria Ayala in forum Adobe Acrobat Macintosh
    Replies: 7
    Last Post: December 15th, 10:42 AM
  2. Make PDF from Multiple files
    By Berj_Manoushagian@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 5
    Last Post: May 31st, 06:05 PM
  3. Quark 6.5 won't make PDF files
    By A_Gould@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 5
    Last Post: May 13th, 10:40 PM
  4. make zip files on IIS
    By Ladislav Kepl in forum ASP
    Replies: 1
    Last Post: September 14th, 07:10 PM
  5. undo make files private
    By Jupiter Jones [MVP] in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 11th, 10:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139