]> git.sesse.net Git - vlc/blob - plugins/text/Makefile
fb3b524583dd36099ff1fcc73c2e5a7ed0b16cc1
[vlc] / plugins / text / Makefile
1 ###############################################################################
2 # vlc (VideoLAN Client) text module Makefile
3 # (c)2001 VideoLAN
4 ###############################################################################
5
6 include ../../Makefile.modules
7
8 ###############################################################################
9 # Objects and files
10 ###############################################################################
11 PLUGIN_NCURSES = ncurses.o vout_ncurses.o
12 BUILTIN_NCURSES = $(PLUGIN_NCURSES:%.o=%-BUILTIN.o)
13
14 ALL_OBJ = $(PLUGIN_NCURSES) $(BUILTIN_NCURSES)
15
16 objects := $(ALL_OBJ)
17 cdependancies := $(objects:%.o=.dep/%.d)
18
19 export
20
21 #
22 # Virtual targets
23 #
24 all:
25
26 clean:
27         rm -f $(ALL_OBJ)
28         rm -f *.o *.moc *.bak *.builtin
29         rm -rf .dep
30
31 FORCE:
32
33 $(cdependancies): %.d: FORCE
34         @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@
35
36 $(ALL_OBJ): %.o: ../../Makefile.dep Makefile
37
38 $(PLUGIN_NCURSES): %.o: .dep/%.d
39 $(PLUGIN_NCURSES): %.o: %.c
40         $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
41
42 $(BUILTIN_NCURSES): %-BUILTIN.o: .dep/%.d
43 $(BUILTIN_NCURSES): %-BUILTIN.o: %.c
44         $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $<
45
46 #
47 # Real targets
48 #
49 ../../lib/ncurses.so: $(PLUGIN_NCURSES)
50         $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_NCURSES)
51
52 ../../lib/ncurses.a: $(BUILTIN_NCURSES)
53         ar r $@ $^
54