[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cross compiling without ./configure
From: |
mahmoodn |
Subject: |
Re: Cross compiling without ./configure |
Date: |
Fri, 26 Mar 2010 08:30:10 -0700 (PDT) |
Still I don't understand....:confused: I have gcc and g++ installed in my
ubuntu (host machine). I have used them for my regular compilations in the
host machine. This is the makefile:
TARGET = BARNES
FILES = code.C code_io.C load.C grav.C getparam.C util.C \
code.H defs.H stdinc.H vectmath.H
CS = code.c code_io.c load.c grav.c getparam.c util.c
OBJS = code.o code_io.o load.o grav.o getparam.o util.o
CFLAGS = -O2 -Olimit 2000
LDFLAGS = -lmpc -lm
MACROS = ../../null_macros/c.m4.null
M4 = m4 -s -Ulen -Uindex
x = *
$(TARGET): $(OBJS)
cc $(OBJS) $(CFLAGS) -o $(TARGET) $(LDFLAGS)
.SUFFIXES:
.SUFFIXES: .o .c .C .h .H
.H.h:
$(M4) ${MACROS} $*.H > $*.h
.C.c:
$(M4) $(MACROS) $*.C > $*.c
.c.o:
cc -c $(CFLAGS) $*.c
.C.o:
$(M4) $(MACROS) $*.C > $*.c
cc -c $(CFLAGS) $*.c
code.h: code.H defs.h
defs.h: defs.H stdinc.h vectmath.h
stdinc.h: stdinc.H
vectmath.h : vectmath.H
code.o: code.C code.h defs.h
code_io.o: code_io.C code.h
getparam.o: getparam.C stdinc.h
grav.o: grav.C code.h
load.o: load.C code.h defs.h
util.o: util.C stdinc.h
Alberto Luaces wrote:
>
> mahmoodn writes:
>
>> What do you mean by "Solaris cross
>> compiler"? is it a tool that should be used in the host or target
>> machine?
>
> A compiler that runs on Ubuntu and generates Solaris
> binaries. Otherwise you'd have to do the compilation in your Solaris
> system.
>
> --
> Alberto
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>
>
--
View this message in context:
http://old.nabble.com/Cross-compiling-without-.-configure-tp28039536p28044081.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- Cross compiling without ./configure, mahmoodn, 2010/03/26
- Re: Cross compiling without ./configure, mahmoodn, 2010/03/26
- Re: Cross compiling without ./configure, Alberto Luaces, 2010/03/26
- Re: Cross compiling without ./configure,
mahmoodn <=
- Re: Cross compiling without ./configure, Galen Seitz, 2010/03/26
- Re: Cross compiling without ./configure, Alberto Luaces, 2010/03/26
- Re: Cross compiling without ./configure, mahmoodn, 2010/03/26
- Re: Cross compiling without ./configure, Galen Seitz, 2010/03/27
- Re: Cross compiling without ./configure, David Boyce, 2010/03/27
- Re: Cross compiling without ./configure, mahmoodn, 2010/03/27