2 include $(TOP)/config/make.cfg
4 # Allow to override timer_platform.h
5 USER_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/timer \
6 -I$(SRCDIR)/arch/all-$(ARCH)/timer
8 USER_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/timer
10 USER_INCLUDES += -I$(SRCDIR)/rom/timer
12 # Allow to add architecture-specific options
13 # -DUSE_VBLANK_EMU needs to be defined in make.opts if needed, because
14 # autogenerated startup code (which is processed by this mmakefile)
15 # needs proper sizeof(struct TimerBase) value
16 -include $(SRCDIR)/arch/all-$(ARCH)/timer/make.opts
17 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/timer/make.opts
18 ifneq ($(AROS_TARGET_VARIANT),)
19 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/timer/make.opts
22 FILES := common_init timer_init lowlevel ticks timervblank
23 FUNCS := abortio addtime beginio cmptime getsystime subtime readeclock
25 USER_LDFLAGS := -static
27 %build_module mmake=kernel-timer \
28 modname=timer modtype=device version=$(AROS_TARGET_PLATFORM) \
29 files="$(FUNCS) $(FILES)" archspecific=yes