]> git.sesse.net Git - vlc/blob - plugins/gtk/Makefile
* Added .cvsignore files in the plugins directories.
[vlc] / plugins / gtk / Makefile
1 ###############################################################################
2 # vlc (VideoLAN Client) gtk module Makefile
3 # (c)2001 VideoLAN
4 ###############################################################################
5
6 -include ../../Makefile.modules
7
8 #
9 # Objects
10 #
11
12 PLUGIN_GTK = gtk.o intf_gtk.o gtk_callbacks.o gtk_interface.o gtk_support.o gtk_playlist.o
13 BUILTIN_GTK = $(PLUGIN_GTK:%.o=BUILTIN_%.o)
14
15 ALL_OBJ = $(PLUGIN_GTK) $(BUILTIN_GTK)
16
17 #
18 # Virtual targets
19 #
20
21 include ../../Makefile.common
22
23 $(PLUGIN_GTK): %.o: .dep/%.d
24 $(PLUGIN_GTK): %.o: %.c
25         $(CC) $(CFLAGS) $(PCFLAGS) `gtk-config --cflags gtk` -c -o $@ $<
26
27 $(BUILTIN_GTK): BUILTIN_%.o: .dep/%.d
28 $(BUILTIN_GTK): BUILTIN_%.o: %.c
29         $(CC) $(CFLAGS) -DBUILTIN `gtk-config --cflags gtk` -c -o $@ $<
30
31 #
32 # Real targets
33 #
34
35 ../../lib/gtk.so: $(PLUGIN_GTK)
36         $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_GTK)
37
38 ../../lib/gtk.a: $(BUILTIN_GTK)
39         ar r $@ $^
40