2 include $(TOP)/config/make.cfg
4 # This library contains only one function,
5 # which is private (no protos should be generated).
6 # and there doesn't seem to be a template for handling this case
7 # so I write the file manually.
9 USER_INCLUDES := -I$(GENINCDIR)
10 USER_CFLAGS := -D__AROS__ $(HOST_X11_CFLAGS)
12 X11KEYMAPTABLE_FILE := $(AROS_DEVS)/Keymaps/X11/keycode2rawkey.table
14 FILES := x11_hostlib x11_init x11 support x11gfx onbitmap offbitmap x11kbd x11mouse x11clipboard xshm fullscreen
16 #MM kernel-x11gfx : x11keymaptable
18 %build_module mmake=kernel-x11gfx \
19 modname=x11gfx modtype=hidd \
20 files=$(FILES) compiler=host \
21 uselibs="oop hiddgraphicsstubs"
24 x11keymaptable : setup-x11keymaptable $(TOOLDIR)/makexkeytable $(X11KEYMAPTABLE_FILE)
27 #MM change-x11keymaptable
28 change-x11keymaptable : setup-x11keymaptable $(TOOLDIR)/makexkeytable
29 $(TOOLDIR)/makexkeytable -o $(X11KEYMAPTABLE_FILE)
31 #MM default-x11keymaptable
32 default-x11keymaptable : $(X11KEYMAPTABLE_FILE)
35 $(X11KEYMAPTABLE_FILE) : def-x11-keycode2rawkey.table setup-x11keymaptable
38 #MM backup-x11keymaptable
39 backup-x11keymaptable :
40 @$(IF) $(TEST) -f $(X11KEYMAPTABLE_FILE) ; then \
41 $(CP) $(X11KEYMAPTABLE_FILE) ~/aros-x11-keycode2rawkey.table ; \
43 $(ECHO) "Made backup of x11 keymaptable to \"~/aros-x11-keycode2rawkey.table\"" ; \
46 $(ECHO) "There is no x11 keymaptable existing (\"$(X11KEYMAPTABLE_FILE)\")!?" ; \
49 #MM restore-x11keymaptable
50 restore-x11keymaptable : setup-x11keymaptable
51 @$(IF) $(TEST) -f ~/aros-x11-keycode2rawkey.table ; then \
52 $(CP) ~/aros-x11-keycode2rawkey.table $(X11KEYMAPTABLE_FILE) ; \
54 $(ECHO) "Restored x11 keymaptable from \"~/aros-x11-keycode2rawkey.table\"" ; \
57 $(ECHO) "There is no x11 keymaptable backup existing (\"~/aros-x11-keycode2rawkey.table\")!?" ; \
60 setup-x11keymaptable :
61 %mkdirs_q $(AROS_DEVS)/Keymaps $(AROS_DEVS)/Keymaps/X11
63 $(TOOLDIR)/makexkeytable: makexkeytable.c
64 $(HOST_CC) $(HOST_CFLAGS) $(USER_INCLUDES) $< -o $@ $(HOST_X11_LIBS)