2015-05-14 08:43:25 -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-05-17 19:04:19 -05:00
|
|
|
baseIDLFILES = \
|
|
|
|
ui.idl
|
2015-05-14 08:43:25 -05:00
|
|
|
# ui_$(OS).idl
|
|
|
|
|
|
|
|
baseHFILES = \
|
|
|
|
uipriv.h \
|
|
|
|
ui_$(OS).h \
|
|
|
|
$(osHFILES)
|
|
|
|
|
|
|
|
baseCFILES = \
|
2015-07-02 00:43:40 -05:00
|
|
|
box.c \
|
2015-05-18 21:32:22 -05:00
|
|
|
control.c \
|
2015-05-29 21:44:48 -05:00
|
|
|
menu.c \
|
2015-05-14 08:43:25 -05:00
|
|
|
ptrarray.c \
|
|
|
|
shouldquit.c \
|
2015-05-17 17:53:06 -05:00
|
|
|
types.c \
|
2015-05-14 08:43:25 -05:00
|
|
|
$(osCFILES)
|
|
|
|
|
|
|
|
baseMFILES = $(osMFILES)
|
|
|
|
|
2015-05-30 13:33:23 -05:00
|
|
|
baseRCFILES = $(osRCFILES)
|
|
|
|
|
2015-05-14 08:43:25 -05:00
|
|
|
baseCFLAGS = $(osCFLAGS)
|
|
|
|
baseLDFLAGS = \
|
|
|
|
-shared \
|
|
|
|
$(osLDWarnUndefinedFlags) \
|
|
|
|
$(osLDFLAGS)
|
2015-05-30 13:33:23 -05:00
|
|
|
baseRCFLAGS = $(osRCFLAGS)
|
2015-05-14 08:43:25 -05:00
|
|
|
baseSUFFIX = $(osLIBSUFFIX)
|
|
|
|
|
|
|
|
include GNUbase.mk
|
|
|
|
|
|
|
|
test: $(OUT)
|
|
|
|
@$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX) CC=$(CC) archmflag=$(archmflag)
|
|
|
|
.PHONY: test
|