forked from jwt27/djgpp-cvs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from stsp/aconf
Aconf
- Loading branch information
Showing
16 changed files
with
176 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prefix := @prefix@ | ||
libdir := @libdir@ | ||
datarootdir := @datarootdir@ | ||
|
||
CC := @CC@ | ||
CPP := @CPP@ | ||
INSTALL := @INSTALL@ | ||
|
||
CROSS_AS := @CROSS_AS@ | ||
CROSS_AR := @CROSS_AR@ | ||
CROSS_LD := @CROSS_LD@ | ||
CROSS_STRIP := @CROSS_STRIP@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
dnl Process this file with autoconf to produce a configure script. | ||
AC_INIT([dj64dev], [0.2]) | ||
AC_CONFIG_FILES([Makefile.conf src/gcc.opt \ | ||
dj64.pc \ | ||
dj64_s.pc \ | ||
dj64static.pc \ | ||
djdev64.pc \ | ||
djstub64.pc | ||
]) | ||
|
||
VERSION="$PACKAGE_VERSION" | ||
AC_SUBST(VERSION) | ||
|
||
AC_PROG_CC | ||
AC_PROG_CPP | ||
AC_PROG_INSTALL | ||
|
||
CFLAGS="$CFLAGS \ | ||
-fno-common \ | ||
-fpic \ | ||
-ffreestanding \ | ||
-flto=auto \ | ||
-nostdinc \ | ||
-ggdb3 \ | ||
-Og \ | ||
-Wall \ | ||
-Wcast-qual \ | ||
-Werror \ | ||
-Wno-parentheses \ | ||
-Wmissing-declarations \ | ||
-Wmissing-prototypes \ | ||
-Wpointer-arith \ | ||
-Wshadow \ | ||
-Wwrite-strings \ | ||
-Wundef \ | ||
-Wno-array-bounds \ | ||
-Wno-unneeded-internal-declaration \ | ||
-Wno-unknown-warning-option \ | ||
-Wsign-compare" | ||
|
||
machine=`$CC -dumpmachine | cut -d- -f1 | sed 's/i.86/i386/'` | ||
|
||
if test -n "$CROSS_PREFIX"; then | ||
AC_PATH_PROG([CROSS_AS], [${CROSS_PREFIX}as]) | ||
if test -z "$CROSS_AS"; then | ||
AC_MSG_ERROR([${CROSS_PREFIX}as not found, CROSS_PREFIX is wrong]) | ||
fi | ||
else | ||
AC_PATH_PROGS([CROSS_AS], [i686-linux-gnu-as i386-elf-as]) | ||
fi | ||
if test -z "$CROSS_AS"; then | ||
if test "$CONFIG_HOST" = "Darwin"; then | ||
AC_MSG_ERROR([Please install i386-elf-binutils from https://github.com/nativeos/homebrew-i386-elf-toolchain]) | ||
fi | ||
AC_PATH_PROG([CROSS_AS], [x86_64-linux-gnu-as]) | ||
if test -z "$CROSS_AS"; then | ||
if test "$machine" = "i386" -o "$machine" = "x86_64"; then | ||
CROSS_AS="$AS" | ||
if test "$clang_as_as" = "1"; then | ||
CROSS_ASFLAGS="$ASFLAGS -m32" | ||
else | ||
CROSS_ASFLAGS="--32" | ||
fi | ||
else | ||
AC_PATH_PROG([CROSS_AS], [clang]) | ||
if test -n "$CROSS_AS"; then | ||
CROSS_ASFLAGS="-x assembler -target i686-unknown-linux-gnu -c -" | ||
else | ||
AC_MSG_ERROR([386 assembler not found, please install clang or binutils-i686-linux-gnu]) | ||
fi | ||
fi | ||
else | ||
CROSS_ASFLAGS="--32" | ||
fi | ||
fi | ||
|
||
if test -n "$CROSS_PREFIX"; then | ||
AC_PATH_PROG([CROSS_LD], [${CROSS_PREFIX}ld]) | ||
if test -z "$CROSS_LD"; then | ||
AC_MSG_ERROR([${CROSS_PREFIX}ld not found, CROSS_PREFIX is wrong]) | ||
fi | ||
else | ||
AC_PATH_PROGS([CROSS_LD], [i686-linux-gnu-ld i386-elf-ld x86_64-linux-gnu-ld ld.lld]) | ||
fi | ||
if test -z "$CROSS_LD"; then | ||
if test "$machine" = "i386" -o "$machine" = "x86_64"; then | ||
AC_PATH_PROGS([CROSS_LD], [ld]) | ||
fi | ||
fi | ||
if test -z "$CROSS_LD"; then | ||
AC_MSG_ERROR([cross-ld not found]) | ||
fi | ||
|
||
if test -n "$CROSS_PREFIX"; then | ||
AC_PATH_PROG([CROSS_AR], [${CROSS_PREFIX}ar]) | ||
if test -z "$CROSS_AR"; then | ||
AC_MSG_ERROR([${CROSS_PREFIX}ar not found, CROSS_PREFIX is wrong]) | ||
fi | ||
else | ||
AC_PATH_PROGS([CROSS_AR], [i686-linux-gnu-ar i386-elf-ar x86_64-linux-gnu-ar llvm-ar]) | ||
fi | ||
if test -z "$CROSS_AR"; then | ||
if test "$machine" = "i386" -o "$machine" = "x86_64"; then | ||
AC_PATH_PROGS([CROSS_AR], [ar]) | ||
fi | ||
fi | ||
if test -z "$CROSS_AR"; then | ||
AC_MSG_ERROR([cross-ar not found]) | ||
fi | ||
|
||
if test -n "$CROSS_PREFIX"; then | ||
AC_PATH_PROG([CROSS_STRIP], [${CROSS_PREFIX}strip]) | ||
if test -z "$CROSS_STRIP"; then | ||
AC_MSG_ERROR([${CROSS_PREFIX}strip not found, CROSS_PREFIX is wrong]) | ||
fi | ||
else | ||
AC_PATH_PROGS([CROSS_STRIP], [i686-linux-gnu-strip i386-elf-strip x86_64-linux-gnu-strip llvm-strip]) | ||
fi | ||
if test -z "$CROSS_STRIP"; then | ||
if test "$machine" = "i386" -o "$machine" = "x86_64"; then | ||
AC_PATH_PROGS([CROSS_STRIP], [strip]) | ||
fi | ||
fi | ||
if test -z "$CROSS_STRIP"; then | ||
AC_MSG_ERROR([cross-strip not found]) | ||
fi | ||
|
||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Name: dj64_s | ||
Description: dj64 static linking | ||
Version: @VERSION@ | ||
prefix=@PREFIX@ | ||
prefix=@prefix@ | ||
crt0=${prefix}/i386-pc-dj64/lib/crt0.elf | ||
Libs: -L${prefix}/i386-pc-dj64/lib64 -ldj64_s -shared -Wl,-Bsymbolic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Name: dj64static | ||
Description: dj64static libs | ||
Version: @VERSION@ | ||
prefix=@PREFIX@ | ||
prefix=@prefix@ | ||
Libs: --whole-archive ${prefix}/i386-pc-dj64/lib/libc.a --no-whole-archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@CFLAGS@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,5 @@ | ||
# Copyright (C) 2007 DJ Delorie, see COPYING.DJ for details | ||
|
||
config: gcc.opt | ||
|
||
gcc.opt: makefile.cfg | ||
@$(RM) -f $@ | ||
@echo "-fno-common" >>$@ | ||
@echo "-fpic" >>$@ | ||
@echo "-ffreestanding" >>$@ | ||
@echo "-flto=auto" >>$@ | ||
@echo "-nostdinc" >>$@ | ||
@echo "-ggdb3" >>$@ | ||
@echo "-Og" >>$@ | ||
@echo "-Wall" >>$@ | ||
@echo "-Wcast-qual" >>$@ | ||
@echo "-Werror" >>$@ | ||
@echo "-Wno-parentheses" >>$@ | ||
@echo "-Wmissing-declarations" >>$@ | ||
@echo "-Wmissing-prototypes" >>$@ | ||
@echo "-Wpointer-arith" >>$@ | ||
@echo "-Wshadow" >>$@ | ||
@echo "-Wwrite-strings" >>$@ | ||
@echo "-Wundef" >>$@ | ||
# @echo "-Wcast-align" >>$@ | ||
@echo "-Wno-array-bounds" >>$@ | ||
@echo "-Wno-unneeded-internal-declaration" >>$@ | ||
@echo "-Wno-unknown-warning-option" >>$@ | ||
@echo "-Wsign-compare" >>$@ | ||
gcc.opt: gcc.opt.in | ||
cd .. && ./configure |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters