make_gcc.jim 853 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
{@define bin={osbin}}
{#include macro make_unix.jim}

{@comment define the command that starts make with C compiler}
{#define make=make}

{@comment
Define where the include files and the libraries are. Use the ? because
setup.pl may already correctly define it in configure.jim if the
borland compiler is in the path.
}

{@comment
The C compiler is 'gcc'
-I where the include directories are
-L where the libraries are
}
{#define cc=gcc -w}
{#define CcOptOutput/X=-o X}
{#define CcOptInput/X=X}
21
{#define CcOptCompile=-c -fpic}
22 23 24 25 26 27 28
{#define CcOptDefine/X=-DX}

{@comment }
{#define lib=ar}
{#define LibOptOutput/X=-r X}
{#define LibOptInput/X=X}

29
{#define ld=ld -shared}
30 31 32 33 34
{#define LdOptOutput/X=-o X}
{#define LdOptInput/X=X}

{@comment the standard libraries that we need}
{#define StandardLibraries=-lc -lm -ldl -lpthread}