support for binding :commands to keys
[cmus.git] / cmus / Dir.mk
blob51b34c61896e9815399ebc9c4a65fca287fa294d
1 objs-y := \
2 browser.o \
3 cmdline.o \
4 cmus.o \
5 command_mode.o \
6 comment.o \
7 db.o \
8 debug.o \
9 expr.o \
10 file_load.o \
11 filters.o \
12 format_print.o \
13 glob.o \
14 history.o \
15 http.o \
16 input.o \
17 keys.o \
18 load_dir.o \
19 mergesort.o \
20 misc.o \
21 options.o \
22 output.o \
23 pcm.o \
24 pl.o \
25 play_queue.o \
26 player.o \
27 pls.o \
28 read_wrapper.o \
29 server.o \
30 sconf.o \
31 search.o \
32 search_mode.o \
33 spawn.o \
34 symbol.o \
35 tabexp.o \
36 tabexp_file.o \
37 track_db.o \
38 track_info.o \
39 uchar.o \
40 ui_curses.o \
41 window.o \
42 worker.o \
43 xstrjoin.o
45 objs-$(CONFIG_IRMAN) += irman.o irman_config.o
47 CFLAGS += -I$(top_builddir) -I$(top_srcdir)/common -I$(srcdir) -g $(PTHREAD_CFLAGS) $(NCURSES_CFLAGS) $(ICONV_CFLAGS)
49 cmus: $(objs-y) $(top_builddir)/common/common.a
50 $(call cmd,ld,$(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) -lm)
52 exec-y += cmus
53 clean += $(objs-y) $(objs-n)
55 # If config.mk changes, rebuild all sources that include debug.h
57 # debug.h depends on DEBUG variable which is defined in config.mk
58 # if config.mk is newer than debug.h then touch debug.h
59 _dummy := $(shell [ $(top_builddir)/config.mk -nt $(srcdir)/debug.h ] && touch $(srcdir)/debug.h)