libui/GNUmakefile

43 lines
585 B
Makefile
Raw Normal View History

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
baseHFILES = \
2015-04-22 14:04:55 -05:00
ui.h \
uipriv.h \
ui_$(OS).h \
$(osHFILES)
2015-04-22 14:04:55 -05:00
baseCFILES = \
box.c \
$(osCFILES)
2015-04-22 14:04:55 -05:00
baseMFILES = $(osMFILES)
baseCFLAGS = $(osCFLAGS)
baseLDFLAGS = \
-shared \
2015-04-28 13:46:09 -05:00
$(osLDWarnUndefinedFlags) \
$(osLDFLAGS)
baseSUFFIX = $(osLIBSUFFIX)
2015-04-22 14:04:55 -05:00
include GNUbase.mk
2015-04-22 14:04:55 -05:00
test: $(OUT)
2015-04-24 13:11:23 -05:00
$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX) CC=$(CC)
.PHONY: test