Sponsored Content
Operating Systems OS X (Apple) Alternatives to GNU Make for users of newer OS X Post 302949485 by Don Cragun on Saturday 11th of July 2015 03:39:12 PM
Old 07-11-2015
That is news to me. I just tried the following on Mac OS X Yosemite Version 10.10.4:
Code:
$ cat hello.c
#include <stdio.h>
int main() {
	printf("Hello world.\n");
	return(0);
}
$ make hello
cc     hello.c   -o hello
$ ./hello
Hello world.
$

You do have to perform a free download of the Xcode development tools to get them, but once you do that gcc, make, and the other common development tools are readily available even if you don't use the Xcode tools to manage your source code.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problems with gnu make

I am running a make file through the gnu make tool and i am getting the following error jsh1035c:/users/egate453/admegate/kapil/samples $ make -f GNUmakefile queue_c make -f ./GNUmakefile queue_c in_objdir=1 build_root=/users/egate453/admegate/kapil/samples make: Entering directory... (2 Replies)
Discussion started by: handak9
2 Replies

2. UNIX for Advanced & Expert Users

GNU's make error codes - list

Hi, I often encounter make errors. Many a times, a corresponding error code is also shown, like make: Error 56 (ignored) make: Error 91 (ignored) make: Error 96 (ignored) et al. I tried google'ing as well as searching this forum for what these error codes mean. I know, make... (1 Reply)
Discussion started by: vino
1 Replies

3. UNIX for Dummies Questions & Answers

What's the difference between PMake and GNU Make?

My system is ubuntu, can I use PMake ? (0 Replies)
Discussion started by: meili100
0 Replies

4. Programming

Detecting host OS in Gnu make

Is this possible? Right now I'm developing some code for Linux, Windows and OS X. To build on each of the systems I've currently got separate build targets for each platform. Ideally I'd like to set up a single make rule that can detect the appropriate target and build it. I know this is... (2 Replies)
Discussion started by: G_Morgan
2 Replies

5. SCO

GNU cpp and make on SCO

Installed GNU make and the GNU C/C++ compiler on SCO Openserver 5.0.7 recently. Only a normal user is able to run make and compile programs - root is not able to. Under root, make do run, but root can't access the compiler at all, even tho I set root's path to point to the compiler.... (0 Replies)
Discussion started by: The_Librarian
0 Replies

6. Programming

A question about Makefile run by GNU make

Hello everybody, Currently I'm learning how to build projects (C programming) with GNU make. I have a problem with one Makefile and I would appreciate if you could kindly give me a hand. Here is the environment: OS: Redhat linux 5 compiler: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)... (2 Replies)
Discussion started by: dariyoosh
2 Replies

7. AIX

gnu make fir AIX 5.3 and gcc 3.3.2

Hi all i had installed gcc version 3.3.2 on my AIX 5.3 machine. which make utility i have to instal so it will fit the gcc version tnx skfn (2 Replies)
Discussion started by: skfn1203
2 Replies

8. AIX

Not picking up the GNU version of make

Hi team, I am new to unix,and need your advice on the below. I am using aix5.3 and have installed make-3.82 on the server. I need to use gmake for configuring and installing a package ,but it is giving error at the below root@sapsrp:/usr/tmp/xymon-4.3.2 # ./configure.server ... (7 Replies)
Discussion started by: sonal kumar
7 Replies

9. Shell Programming and Scripting

GNU make doesn't pick up changes

It's been a while since I had to write a Makefile, but I've managed to clobber this together: SRC=module1.c module2.c OBJS=$(SRC:%.c=%.o) HDR=include1.h include2.h CC=gcc CFLAGS=-Wall -ggdb -D_XOPEN_SOURCE -I. -ansi all: program program: $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) ... (3 Replies)
Discussion started by: pludi
3 Replies

10. Shell Programming and Scripting

extension building make GNU Linux

Hi, I do "touch poub.mlc" Download my Makefile, But when I try : make -f Makefile.txt(.txt in order my file to be accepted for upload), it says:"no rule for poub.mlo target" What is wrong in my Makefile(test yourself please before posting)? (1 Reply)
Discussion started by: synhedionn
1 Replies
XCODEBUILD(1)						    BSD General Commands Manual 					     XCODEBUILD(1)

NAME
xcodebuild -- build Xcode projects SYNOPSIS
xcodebuild [-project projectname] [-activetarget] [-alltargets] [-target targetname] [-parallelizeTargets] [-activeconfiguration] [-configuration configurationname] [-sdk <sdkfullpath> | <sdkname>] [buildaction ...] [setting=value ...] [-default=value ...] xcodebuild -version [-sdk [<sdkfullpath> | <sdkname> [<single item>]]] xcodebuild -find <binary> [-sdk <sdkfullpath> | <sdkname>] xcodebuild -showsdks xcodebuild -list xcodebuild -help DESCRIPTION
xcodebuild builds a target contained in an Xcode project. Usage Run xcodebuild from the directory containing your project (i.e. the directory containing the projectname.xcodeproj package). If you have multiple projects in the this directory you will need to use -project to indicate which project should be built. By default, xcodebuild builds the first target listed in your project, with the default build configuration. The order of the targets is a property of the project and is the same for all users of the project. The active target and active build configuration properties are set for each user of the project and can vary from user to user. Options -project projectname Build the project specified by projectname. Required if there are multiple project files in the same directory. -activetarget Builds the user's active target. -alltargets Build all the targets in the project. -target targetname Build the target specified by targetname. -nodependencies Only perform the action on the specified target(s), not on any targets upon which they depend. This option only applies to the 'clean' action. -parallelizeTargets Build independent targets in parallel when possible. With distributed builds or multiprocessor machines, this can cause projects with many simple targets to build substantially faster. This option only applies to targets with target dependencies. -activeconfiguration Use the user's active build configuration when building the target. -configuration configurationname Use the build configuration specified by configurationname when building the target. -sdk <sdkfullpath> | <sdkname> Build an Xcode project against the specified SDK, using build tools appropriate for that SDK. The argument may be an absolute path to an SDK, or the canonical name of an SDK. -showsdks Lists all available SDKs, including their canonical names suitable for use with -sdk. buildaction ... Specify a build action (or actions) to perform on the target. Available build actions are: build Build the target in the build root (SYMROOT). This is the default build action. installsrc Copy the source of the project to the source root (SRCROOT). install Build the target and install it into the target's installation directory in the distribution root (DSTROOT). clean Remove build products and intermediate files from the build root (SYMROOT). setting=value Set the build setting setting to value. -find binary -sdk <sdkfullpath> | <sdkname> Print the absolute path to binary in the context of sdk. If the -sdk argument is not provided, find uses the value of the build set- ting SDKROOT, if set. Returns EINVAL if a valid SDK could not be determined. The search order is the usr/bin directory in the SDK, the bin directory in the SDK, then each of the paths specified by the PATH environment variable. Returns ENOENT if the requested binary could not be located in any of the searched directories. NOTE: 'xcrun -find' is preferred because it caches the resulting find; xcrun uses xcodebuild to populate its cache. -version Display version information. When used in conjunction with -sdk, the version of the specified SDK is displayed, or all SDKs if -sdk is given no value. Additionally, a single line of the reported version information may be returned if specified. -default=value Set the user default default to value. -list Lists the targets in the project. Does not initiate a build. -nodistribute Disable distributed building. Overrides the distributed build setting stored in the user defaults by the Xcode preferences panel. -bonjourbuildhosts Enable distributed building and search for build machines using Bonjour. Build machines are added dynamically during the build as they are discovered. May be used alone or in conjunction with -buildhosts or -buildhostsfile. -nobonjourbuildhosts Do not search for build machines using Bonjour. Overrides the Bonjour distributed build setting stored in the user defaults by the Xcode preferences panel. -buildhosts hostlist Enable distributed building and set the list of build machines to the space separated list given in hostlist. -buildhostsfile hostsfile Enable distributed building and set the list of build machines to the contents of hostsfile. hostsfile is a text file containing build machine names, one per line. -help Displays usage information for xcodebuild. EXAMPLES
xcodebuild clean install Cleans the build directory; then builds and installs the first target in the project. xcodebuild -target MyTarget OBJROOT=/Build/MyProj/Obj.root SYMROOT=/Build/MyProj/Sym.root Builds the target MyTarget putting object (intermediate) files in one directory and the products of the build in another directory. xcodebuild -sdk macosx10.4 Builds an Xcode project against the Mac OS X 10.4 SDK. The canonical names of all available SDKs can be viewed using the -showsdks option. Mac OS X April 8, 2008 Mac OS X
All times are GMT -4. The time now is 05:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy