11-02-2008
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 correctly done via autoconf for distribution but that is overkill for my purposes.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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 Dummies Questions & Answers
My system is ubuntu, can I use PMake ? (0 Replies)
Discussion started by: meili100
0 Replies
3. 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
4. AIX
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
5. AIX
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
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. OS X (Apple)
As you may already know, Apple has integrated all the GNU developer tools into their own graphical development environment so you can no longer use them from the command line. This means that open source software that is distributed as source is inaccessible to users of newer versions of Mac OS X,... (4 Replies)
Discussion started by: Ultrix
4 Replies
9. Programming
I need some help.
I use variables and conditionals to build with or without specic libraries. I set
USEAL ?= 1 # get value from cmd, defaults to 1
(see comment)
the conditional is:
ifeq ($(USEAL),1)
LIBS = <any libs>
else
LIBS =
endif
Its amazing that this works when invoked... (4 Replies)
Discussion started by: dodona
4 Replies
10. UNIX for Advanced & Expert Users
When I tried to configure GNU make, I received:...
WARNING: Your system has neither waitpid() nor wait3().
Without one of these, signal handling is unreliable
You should be aware that running GNU make with -j
could result in erratic behavior.
...
What is that supposed to mean ? my spec:
... (1 Reply)
Discussion started by: abdulbadii
1 Replies
LEARN ABOUT MOJAVE
perlriscos
PERLRISCOS(1) Perl Programmers Reference Guide PERLRISCOS(1)
NAME
perlriscos - Perl version 5 for RISC OS
DESCRIPTION
This document gives instructions for building Perl for RISC OS. It is complicated by the need to cross compile. There is a binary version
of perl available from <http://www.cp15.org/perl/> which you may wish to use instead of trying to compile it yourself.
BUILD
You need an installed and working gccsdk cross compiler <http://gccsdk.riscos.info/> and REXEN <http://www.cp15.org/programming/>
Firstly, copy the source and build a native copy of perl for your host system. Then, in the source to be cross compiled:
1.
$ ./Configure
2. Select the riscos hint file. The default answers for the rest of the questions are usually sufficient.
Note that, if you wish to run Configure non-interactively (see the INSTALL document for details), to have it select the correct hint
file, you'll need to provide the argument -Dhintfile=riscos on the Configure command-line.
3.
$ make miniperl
4. This should build miniperl and then fail when it tries to run it.
5. Copy the miniperl executable from the native build done earlier to replace the cross compiled miniperl.
6.
$ make
7. This will use miniperl to complete the rest of the build.
AUTHOR
Alex Waugh <alex@alexwaugh.com>
perl v5.18.2 2013-11-04 PERLRISCOS(1)