1999-08-08 20:42:54 +08:00
|
|
|
################################################################################
|
2001-06-03 20:47:22 +08:00
|
|
|
# vlc (VideoLAN Client) dependencies makefile
|
1999-08-08 20:42:54 +08:00
|
|
|
# (c)1998 VideoLAN
|
|
|
|
################################################################################
|
|
|
|
# This Makefile is dedicated to build of .d files. It should not be called
|
|
|
|
# directly by user, but only through main Makefile.
|
|
|
|
################################################################################
|
|
|
|
|
2001-04-15 12:19:58 +08:00
|
|
|
###############################################################################
|
2001-06-03 20:47:22 +08:00
|
|
|
# Note on generic rules and dependencies
|
2001-04-15 12:19:58 +08:00
|
|
|
###############################################################################
|
|
|
|
|
2001-06-03 20:47:22 +08:00
|
|
|
# Note on dependencies: each .c file is associated with a .d file, which
|
2001-04-15 12:19:58 +08:00
|
|
|
# depends of it. The .o file associated with a .c file depends of the .d, of the
|
|
|
|
# .c itself, and of Makefile. The .d files are stored in a separate .dep/
|
|
|
|
# directory.
|
|
|
|
# The dep directory should be ignored by CVS.
|
|
|
|
|
2001-06-03 20:47:22 +08:00
|
|
|
# Note on inclusions: depending of the target, the dependencies files must
|
2001-04-15 12:19:58 +08:00
|
|
|
# or must not be included. The problem is that if we ask make to include a file,
|
|
|
|
# and this file does not exist, it is made before it can be included. In a
|
|
|
|
# general way, a .d file should be included if and only if the corresponding .o
|
|
|
|
# needs to be re-made.
|
|
|
|
|
|
|
|
# The object Makefile knows how to make a .o from a .c, and includes
|
2001-06-03 20:47:22 +08:00
|
|
|
# dependencies for the target, but only those required.
|
2001-04-15 12:19:58 +08:00
|
|
|
|
1999-08-08 20:42:54 +08:00
|
|
|
# All settings and options are passed through main Makefile
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Default target
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
default:
|
2000-07-04 10:37:21 +08:00
|
|
|
@echo "This Makefile should not be called directly,"
|
|
|
|
@echo "see notes at end of main Makefile."
|
1999-08-08 20:42:54 +08:00
|
|
|
|
|
|
|
################################################################################
|
2001-06-03 20:47:22 +08:00
|
|
|
# Dependencies creation
|
1999-08-08 20:42:54 +08:00
|
|
|
################################################################################
|
|
|
|
|
2001-06-03 20:47:22 +08:00
|
|
|
# A dependencies file needs to be rebuilt if the .c changed or if one of the
|
|
|
|
# dependencies files have been changed. In other words, it depends from the
|
1999-08-08 20:42:54 +08:00
|
|
|
# .c and from itself.
|
|
|
|
|
|
|
|
-include $(MAKECMDGOALS)
|
2001-02-18 11:32:02 +08:00
|
|
|
|
2001-12-11 23:31:37 +08:00
|
|
|
CFLAGS += -DMAKE_DEP
|
|
|
|
|
2001-04-16 15:40:11 +08:00
|
|
|
$(C_DEP): .dep/%.d: %.c
|
2001-08-07 10:48:25 +08:00
|
|
|
@test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
|
|
|
@echo "make[$(MAKELEVEL)]: Generating dependencies for \`$*.c'"
|
2002-04-06 04:44:23 +08:00
|
|
|
@$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
|
2000-07-04 10:37:21 +08:00
|
|
|
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
|
|
|
|
.dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
|
|
|
|
[ -s $@ ] || rm -f $@'
|
|
|
|
|
2001-04-16 15:40:11 +08:00
|
|
|
$(CPP_DEP): .dep/%.dpp: %.cpp
|
2001-08-07 18:54:51 +08:00
|
|
|
@test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
|
|
|
@echo "make[$(MAKELEVEL)]: Generating dependencies for \`$*.cpp'"
|
2002-04-06 04:44:23 +08:00
|
|
|
@$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
|
2001-02-18 11:32:02 +08:00
|
|
|
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
|
|
|
|
.dep\/$(subst /,\/,$*).dpp : /g'\'' > $@; \
|
|
|
|
[ -s $@ ] || rm -f $@'
|
|
|
|
|
2002-05-13 04:56:34 +08:00
|
|
|
$(M_DEP): .dep/%.dm: %.m
|
|
|
|
@test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
|
|
|
@echo "make[$(MAKELEVEL)]: Generating dependencies for \`$*.m'"
|
2002-05-13 04:56:34 +08:00
|
|
|
@$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
|
|
|
|
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
|
|
|
|
.dep\/$(subst /,\/,$*).dm : /g'\'' > $@; \
|
|
|
|
[ -s $@ ] || rm -f $@'
|
|
|
|
|