mirror of https://github.com/deadw00d/AROS.git
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# $Id$
|
|
|
|
include $(SRCDIR)/config/aros.cfg
|
|
|
|
# Allow to override timer_platform.h
|
|
USER_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/timer \
|
|
-I$(SRCDIR)/arch/all-$(ARCH)/timer
|
|
ifneq ($(FAMILY),)
|
|
USER_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/timer
|
|
endif
|
|
USER_INCLUDES += -I$(SRCDIR)/rom/timer
|
|
|
|
# Allow to add architecture-specific options
|
|
# -DUSE_VBLANK_EMU needs to be defined in make.opts if needed, because
|
|
# autogenerated startup code (which is processed by this mmakefile)
|
|
# needs proper sizeof(struct TimerBase) value
|
|
-include $(SRCDIR)/arch/all-$(ARCH)/timer/make.opts
|
|
-include $(SRCDIR)/arch/$(CPU)-$(ARCH)/timer/make.opts
|
|
ifneq ($(AROS_TARGET_VARIANT),)
|
|
-include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/timer/make.opts
|
|
endif
|
|
|
|
FILES := common_init timer_init lowlevel ticks timervblank
|
|
FUNCS := abortio addtime beginio cmptime getsystime subtime readeclock getuptime
|
|
|
|
USER_CPPFLAGS += \
|
|
-DUSE_EXEC_DEBUG
|
|
USER_LDFLAGS := -static
|
|
|
|
%build_module mmake=kernel-timer \
|
|
modname=timer modtype=device version=$(AROS_TARGET_PLATFORM) \
|
|
files="$(FUNCS) $(FILES)" archspecific=yes usesdks="config"
|
|
|
|
%common
|