libui/new/GNUmakefile

40 lines
534 B
Makefile

# 22 april 2015
# MAME does this so :/
ifeq ($(OS),Windows_NT)
OS = windows
endif
ifndef OS
UNAME = $(shell uname -s)
ifeq ($(UNAME),Darwin)
OS = darwin
else
OS = unix
endif
endif
include $(OS)/GNUmakeinc.mk
baseHFILES = \
ui.h \
uipriv.h \
ui_$(OS).h \
$(osHFILES)
baseCFILES = \
box.c \
$(osCFILES)
baseMFILES = $(osMFILES)
baseCFLAGS = $(osCFLAGS)
baseLDFLAGS = -shared $(osLDFLAGS)
baseSUFFIX = $(osLIBSUFFIX)
include GNUbase.mk
test:
$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX)
.PHONY: test