2015-04-22 14:04:55 -05:00
|
|
|
# 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
|
|
|
|
|
2015-04-22 16:40:58 -05:00
|
|
|
baseHFILES = \
|
2015-04-22 14:04:55 -05:00
|
|
|
ui.h \
|
|
|
|
uipriv.h \
|
2015-04-22 16:40:58 -05:00
|
|
|
ui_$(OS).h \
|
|
|
|
$(osHFILES)
|
2015-04-22 14:04:55 -05:00
|
|
|
|
2015-04-22 16:40:58 -05:00
|
|
|
baseCFILES = \
|
|
|
|
box.c \
|
|
|
|
$(osCFILES)
|
2015-04-22 14:04:55 -05:00
|
|
|
|
2015-04-22 16:40:58 -05:00
|
|
|
baseMFILES = $(osMFILES)
|
2015-04-22 14:47:37 -05:00
|
|
|
|
2015-04-22 16:40:58 -05:00
|
|
|
baseCFLAGS = $(osCFLAGS)
|
2015-04-22 17:24:16 -05:00
|
|
|
baseLDFLAGS = \
|
|
|
|
-shared \
|
|
|
|
-Wl,--no-undefined -Wl,--no-allow-shlib-undefined \
|
|
|
|
$(osLDFLAGS)
|
2015-04-22 16:40:58 -05:00
|
|
|
baseSUFFIX = $(osLIBSUFFIX)
|
2015-04-22 14:04:55 -05:00
|
|
|
|
2015-04-22 16:40:58 -05:00
|
|
|
include GNUbase.mk
|
2015-04-22 14:04:55 -05:00
|
|
|
|
2015-04-22 17:13:40 -05:00
|
|
|
test: $(OUT)
|
2015-04-24 13:11:23 -05:00
|
|
|
$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX) CC=$(CC)
|
2015-04-22 16:40:58 -05:00
|
|
|
.PHONY: test
|