move delay code into separate function.
[AROS.git] / rom / timer / mmakefile.src
blob226a2288685c40f1c6539a4509e9ea5ddcd0bf69
1 #   $Id$
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
7 ifneq ($(FAMILY),)
8 USER_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/timer
9 endif
10 USER_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/timer   \
11                  -I$(SRCDIR)/rom/timer
13 # Allow to add architecture-specific options
14 # -DUSE_VBLANK_EMU needs to be defined in make.opts if needed, because
15 # autogenerated startup code (which is processed by this mmakefile)
16 # needs proper sizeof(struct TimerBase) value
17 -include $(SRCDIR)/arch/all-$(ARCH)/timer/make.opts
18 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/timer/make.opts
19 ifneq ($(AROS_TARGET_VARIANT),)
20 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/timer/make.opts
21 endif
23 FILES := common_init timer_init lowlevel ticks timervblank
24 FUNCS := abortio addtime beginio cmptime getsystime subtime readeclock
26 USER_LDFLAGS := -static
28 %build_module mmake=kernel-timer \
29   modname=timer modtype=device version=$(AROS_TARGET_PLATFORM) \
30   files="$(FUNCS) $(FILES)" archspecific=yes
32 %common