2015-10-16 19:55:09 -05:00
|
|
|
# 16 october 2015
|
|
|
|
|
|
|
|
# silence entering/leaving messages
|
|
|
|
MAKEFLAGS += --no-print-directory
|
2015-05-14 08:43:25 -05:00
|
|
|
|
2015-10-16 21:49:54 -05:00
|
|
|
OUTDIR = out
|
|
|
|
OBJDIR = .obj
|
|
|
|
|
2015-05-14 08:43:25 -05:00
|
|
|
# MAME does this so :/
|
|
|
|
ifeq ($(OS),Windows_NT)
|
2015-10-16 19:55:09 -05:00
|
|
|
OS = windows
|
2015-05-14 08:43:25 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef OS
|
2015-10-16 19:55:09 -05:00
|
|
|
UNAME = $(shell uname -s)
|
|
|
|
ifeq ($(UNAME),Darwin)
|
|
|
|
OS = darwin
|
2015-11-17 09:46:58 -06:00
|
|
|
else ifeq ($(UNAME),Haiku)
|
|
|
|
OS = haiku
|
2015-10-16 19:55:09 -05:00
|
|
|
else
|
|
|
|
OS = unix
|
|
|
|
endif
|
2015-05-14 08:43:25 -05:00
|
|
|
endif
|
|
|
|
|
2015-11-17 09:46:58 -06:00
|
|
|
# TODO this is wrong for Haiku
|
2015-10-16 19:55:09 -05:00
|
|
|
ifndef ARCH
|
|
|
|
UNAME = $(shell uname -m)
|
|
|
|
ifeq ($(UNAME),x86_64)
|
|
|
|
ARCH = amd64
|
|
|
|
else ifeq ($(UNAME),i686)
|
|
|
|
ARCH = 386
|
|
|
|
else
|
|
|
|
ARCH = default
|
|
|
|
endif
|
|
|
|
endif
|
2015-05-30 13:33:23 -05:00
|
|
|
|
2015-10-16 19:55:09 -05:00
|
|
|
libui:
|
2015-10-17 09:20:31 -05:00
|
|
|
@$(MAKE) -f GNUmakefile.libui OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1
|
2015-05-14 08:43:25 -05:00
|
|
|
|
2015-10-16 19:55:09 -05:00
|
|
|
clean:
|
2015-10-17 09:20:31 -05:00
|
|
|
@$(MAKE) -f GNUmakefile.libui OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1 clean
|
2015-05-14 08:43:25 -05:00
|
|
|
|
2015-10-16 19:55:09 -05:00
|
|
|
test: libui
|
2015-10-17 09:20:31 -05:00
|
|
|
@$(MAKE) -f GNUmakefile.test OS=$(OS) ARCH=$(ARCH) OUTDIR=$(OUTDIR) OBJDIR=$(OBJDIR) inlibuibuild=1
|