Removed $ARCH from the build.
This commit is contained in:
parent
a29f8ee890
commit
5e26720f18
|
@ -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
|
||||
|
|
19
GNUmakefile
19
GNUmakefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue