libui/GNUmakefile

47 lines
942 B
Makefile
Raw Normal View History

# 16 october 2015
2015-11-27 19:52:56 -06:00
# TODO warn on MinGW-w64 builds that lack of isolation awareness means no theming
# silence entering/leaving messages
MAKEFLAGS += --no-print-directory
2015-10-16 21:49:54 -05:00
OUTDIR = out
OBJDIR = .obj
# MAME does this so :/
ifeq ($(OS),Windows_NT)
OS = windows
endif
ifndef OS
UNAME = $(shell uname -s)
ifeq ($(UNAME),Darwin)
OS = darwin
2015-11-17 09:46:58 -06:00
else ifeq ($(UNAME),Haiku)
OS = haiku
else
OS = unix
endif
endif
2015-11-17 09:46:58 -06:00
# 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:
2015-10-17 09:20:31 -05:00
@$(MAKE) -f GNUmakefile.libui OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1
clean:
2015-10-17 09:20:31 -05:00
@$(MAKE) -f GNUmakefile.libui OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1 clean
test: libui
2015-10-17 09:20:31 -05:00
@$(MAKE) -f GNUmakefile.test OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1