Add 'status' parameter to spawn() and close stdin
[cmus.git] / cmus / Dir.mk
blob369f20f496191295814e632c58326e433fabb15e
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 load_dir.o \
18 mergesort.o \
19 misc.o \
20 options.o \
21 output.o \
22 pcm.o \
23 pl.o \
24 play_queue.o \
25 player.o \
26 pls.o \
27 read_wrapper.o \
28 server.o \
29 sconf.o \
30 search.o \
31 search_mode.o \
32 spawn.o \
33 symbol.o \
34 tabexp.o \
35 tabexp_file.o \
36 track_db.o \
37 track_info.o \
38 uchar.o \
39 ui_curses.o \
40 window.o \
41 worker.o \
42 xstrjoin.o
44 objs-$(CONFIG_IRMAN) += irman.o irman_config.o
46 CFLAGS += -I$(top_builddir) -I$(top_srcdir)/common -I$(srcdir) -g $(PTHREAD_CFLAGS) $(NCURSES_CFLAGS) $(ICONV_CFLAGS)
48 cmus: $(objs-y) $(top_builddir)/common/common.a
49 $(call cmd,ld,$(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) -lm)
51 exec-y += cmus
52 clean += $(objs-y) $(objs-n)
54 # If config.mk changes, rebuild all sources that include debug.h
56 # debug.h depends on DEBUG variable which is defined in config.mk
57 # if config.mk is newer than debug.h then touch debug.h
58 _dummy := $(shell [ $(top_builddir)/config.mk -nt $(srcdir)/debug.h ] && touch $(srcdir)/debug.h)