#
# Makefile for common code of Road Handy Terminal 
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#

.S.s:
	$(CPP) $(CFLAGS) $< -o $*.s
.S.o:
	$(CC) $(CFLAGS) -c $< -o $*.o
%_keymap.c: %_keymap.map
	loadkeys --mktable $< > $@

O_TARGET = roadht.o

obj-y	 := prom.o kbd.o road_ht.o setup.o
obj-$(CONFIG_BUZZER)	 += spdev.o
obj-$(CONFIG_CONTROL_LED)      += leddev.o

ifdef CONFIG_VT
  ifdef CONFIG_KEYBOARD
	obj-$(CONFIG_ROAD_HT) += road_ht_keymap.o  
  endif
endif

include $(TOPDIR)/Rules.make
