Removed $ARCH from the build.

This commit is contained in:
Pietro Gagliardi 2015-12-09 13:49:13 -05:00
parent a29f8ee890
commit 5e26720f18
3 changed files with 4 additions and 34 deletions

View File

@ -27,14 +27,6 @@ CXXFLAGS += \
LDFLAGS += \
-g
ifeq ($(ARCH),386)
CFLAGS += -m32
LDFLAGS += -m32
else ifeq ($(ARCH),amd64)
CFLAGS += -m64
LDFLAGS += -m64
endif
OUT = $(OUTDIR)/$(NAME)$(SUFFIX)
ifdef CXXFILES

View File

@ -24,23 +24,12 @@ ifndef OS
endif
endif
# TODO this is wrong for Haiku
ifndef ARCH
UNAME = $(shell uname -m)
ifeq ($(UNAME),x86_64)
ARCH = amd64
else ifeq ($(UNAME),i686)
ARCH = 386
else
ARCH = default
endif
endif
libui:
@$(MAKE) -f GNUmakefile.libui OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1
@$(MAKE) -f GNUmakefile.libui OS=$(OS) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1
# TODO why is this not a regular old rule
clean:
@$(MAKE) -f GNUmakefile.libui OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1 clean
@$(MAKE) -f GNUmakefile.libui OS=$(OS) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1 clean
test: libui
@$(MAKE) -f GNUmakefile.test OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1
@$(MAKE) -f GNUmakefile.test OS=$(OS) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1

View File

@ -3,14 +3,3 @@
EXESUFFIX = .exe
LIBSUFFIX = .dll
OSHSUFFIX = .h
# TODO only when cross-compiling?
ifeq ($(ARCH),amd64)
CC = x86_64-w64-mingw32-gcc
RC = x86_64-w64-mingw32-windres
else ifeq ($(ARCH),386)
CC = i686-w64-mingw32-gcc
RC = i686-w64-mingw32-windres
else ifneq ($(ARCH),default)
$(error [FAIL] unknown architecture $(ARCH) for Windows build; I need to know which compiler to invoke)
endif