root/branches/dev/wminput/Makefile.in

Revision 124, 1.4 kB (checked in by dsmith, 2 years ago)

wminput plugin refactoring

Line 
1 #Copyright (C) 2007 L. Donnie Smith
2
3 include @top_builddir@/defs.mak
4
5 APP_NAME = wminput
6
7 SOURCES = main.c conf.c c_plugin.c py_plugin.c uinput.c action_enum.c parser.c \
8         lexer.c util.c
9
10 WMINPUT_CONFIG_DIR = $(CWIID_CONFIG_DIR)/wminput
11 CFLAGS += -I@top_builddir@/libcwiid -I/usr/include/python@PYTHON_VERSION@ \
12         -DWMINPUT_CONFIG_DIR=\"$(WMINPUT_CONFIG_DIR)\" \
13         -DCWIID_PLUGINS_DIR=\"$(CWIID_PLUGINS_DIR)\" \
14         -DCWIID_VERSION=\"${PACKAGE_VERSION}\"
15 LDLIBS += -lcwiid -ldl -lpython@PYTHON_VERSION@
16 LDFLAGS += -L@top_builddir@/libcwiid -rdynamic
17 INST_DIR = @bindir@
18
19 YFLAGS += -d
20
21 include $(COMMON)/include/app.mak
22
23 all install clean distclean uninstall: make_plugins
24
25 install: install_configs
26
27 #DON'T UNINSTALL CONFIGS
28 #uninstall: uninstall_configs
29
30 make_plugins:
31         $(MAKE) $(MAKECMDGOALS) -C plugins
32
33 install_configs:
34         install -d $(WMINPUT_CONFIG_DIR)
35         install configs/* $(WMINPUT_CONFIG_DIR)
36         ln -sf acc_ptr $(WMINPUT_CONFIG_DIR)/default
37
38 #uninstall_configs:
39 #       rm -f $(WMINPUT_CONFIG_DIR)/default
40 #       for c in `ls configs`; do                               \
41 #               rm -f $(WMINPUT_CONFIG_DIR)/$$c;        \
42 #       done
43 #       rmdir $(WMINPUT_CONFIG_DIR); true
44
45 action_enum.c: action_enum.awk action_enum.txt
46         $(AWK) -f action_enum.awk action_enum.txt > action_enum.c
47
48 conf.o lexer.c: y.tab.h
49
50 y.tab.h: parser.c
51
52 clean: clean_gen
53
54 clean_gen:
55         rm -f action_enum.c parser.c lexer.c y.tab.h
56
57 distclean: clean
58         rm Makefile
59
60 .PHONY: all install clean distclean uninstall make_plugins clean_gen
Note: See TracBrowser for help on using the browser.