]> mj.ucw.cz Git - libucw.git/blob - ucw/sorter/Makefile
Libucw supports installation
[libucw.git] / ucw / sorter / Makefile
1 # Makefile for the UCW Sorter (c) 2007 Martin Mares <mj@ucw.cz>
2
3 DIRS+=ucw/sorter
4
5 LIBUCW_MODS+=$(addprefix sorter/, config govern sbuck array)
6 LIBUCW_INCLUDES+=$(addprefix sorter/, array.h common.h s-fixint.h \
7         s-internal.h s-multiway.h s-radix.h s-twoway.h sorter.h)
8
9 ifdef CONFIG_DEBUG_TOOLS
10 PROGS+=$(o)/ucw/sorter/sort-test
11 endif
12
13 $(o)/ucw/sorter/sort-test: $(o)/ucw/sorter/sort-test.o $(LIBUCW)
14
15 INSTALL_TARGETS+=install-ucw-sorter
16 install-ucw-sorter:
17         install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/sorter
18         install -m 644 run/include/ucw/sorter/* $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/sorter/
19
20 .PHONY: install-ucw-sorter