changeset 130:d73b74602759

Build system cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 02 Jun 2017 02:02:18 +0300
parents abed2715ea68
children c2d2369feadc
files Makefile Makefile.w32
diffstat 2 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Oct 27 13:47:56 2016 +0300
+++ b/Makefile	Fri Jun 02 02:02:18 2017 +0300
@@ -3,12 +3,10 @@
 # See other Makefile.* files for more options.
 #
 
-# C-compiler, flags and linker flags
+# Compiler, flags and linker flags
 PREFIX ?= /usr/local
-CC ?= gcc
-AR ?= ar
-RANLIB ?= ranlib
-INSTALL ?= install
+
+BINTOOL_PREFIX =
 
 CFLAGS += -DHAVE_CONFIG_H
 LDFLAGS +=
--- a/Makefile.w32	Thu Oct 27 13:47:56 2016 +0300
+++ b/Makefile.w32	Fri Jun 02 02:02:18 2017 +0300
@@ -2,12 +2,9 @@
 # For win32 version cross-compilation with MinGW suite @ Linux
 #
 
-# C-compiler, flags and linker flags
-MINGW_PREFIX=i686-w64-mingw32-
-CC = $(MINGW_PREFIX)gcc
-AR = $(MINGW_PREFIX)ar
-RANLIB = $(MINGW_PREFIX)ranlib
-WINDRES = $(MINGW_PREFIX)windres
+# Compiler, flags and linker flags
+BINTOOL_PREFIX=i686-w64-mingw32-
+WINDRES = $(BINTOOL_PREFIX)windres
 
 CFLAGS += -DHAVE_STRING_H -DTH_BYTEORDER=TH_LITTLE_ENDIAN -mconsole
 LDFLAGS += -s