libui/redo/migrated/GNUmakefile

54 lines
761 B
Makefile
Raw Normal View History

# 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
# ui_$(OS).idl
baseHFILES = \
uipriv.h \
ui_$(OS).h \
$(osHFILES)
baseCFILES = \
box.c \
control.c \
menu.c \
ptrarray.c \
shouldquit.c \
2015-05-17 17:53:06 -05:00
types.c \
$(osCFILES)
baseMFILES = $(osMFILES)
baseRCFILES = $(osRCFILES)
baseCFLAGS = $(osCFLAGS)
baseLDFLAGS = \
-shared \
$(osLDWarnUndefinedFlags) \
$(osLDFLAGS)
baseRCFLAGS = $(osRCFLAGS)
baseSUFFIX = $(osLIBSUFFIX)
include GNUbase.mk
test: $(OUT)
@$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX) CC=$(CC) archmflag=$(archmflag)
.PHONY: test