Changeset 6116299e395a1d8a27c1a7280749a0a7d59d0d66
- Timestamp:
- 16/04/01 09:40:11
(7 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 987406811 +0000
- git-parent:
[5427a369c4a6ef96ab69119879e32360b301f737]
- git-author:
- Sam Hocevar <sam@videolan.org> 987406811 +0000
- Message:
- Added .cvsignore files in the plugins directories.
- Additional Makefile cleaning for built-in modules.
- Fixed Makefile for Solaris target.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r45b6443 |
r6116299 |
|
| 1 | 1 | .* |
|---|
| 2 | | *.ts |
|---|
| 3 | 2 | core |
|---|
| 4 | | dep |
|---|
| | 3 | .dep |
|---|
| 5 | 4 | gmon.out |
|---|
| 6 | | vlc |
|---|
| 7 | 5 | vlc-debug.log |
|---|
| 8 | 6 | vlc-debug.ct |
|---|
| … | … | |
| 10 | 8 | config.cache |
|---|
| 11 | 9 | config.status |
|---|
| 12 | | Makefile |
|---|
| | 10 | Makefile.opts |
|---|
| | 11 | Makefile.modules |
|---|
| 13 | 12 | build-stamp |
|---|
| | 13 | vlc |
|---|
| 14 | 14 | gvlc |
|---|
| 15 | | fbvlc |
|---|
| | 15 | qvlc |
|---|
| | 16 | kvlc |
|---|
| | 17 | gnome-vlc |
|---|
| r4a5e3b5 |
r6116299 |
|
| 5 | 5 | HEAD |
|---|
| 6 | 6 | |
|---|
| | 7 | * Additional Makefile cleaning for built-in modules. |
|---|
| | 8 | * Fixed Makefile for Solaris target. |
|---|
| 7 | 9 | * All Debian packages are now lintian-clean. |
|---|
| 8 | 10 | * Fixed XVideo plugin linking. |
|---|
| r8ccd224 |
r6116299 |
|
| 2 | 2 | |
|---|
| 3 | 3 | |
|---|
| 4 | | Building VideoLAN |
|---|
| 5 | | ================= |
|---|
| | 4 | Configuring VideoLAN |
|---|
| | 5 | ==================== |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | A typical way to configure vlc is: |
|---|
| … | … | |
| 11 | 11 | See `./configure --help' for more information. |
|---|
| 12 | 12 | |
|---|
| 13 | | Then, run `make' to build vlc. |
|---|
| 14 | | |
|---|
| 15 | 13 | Here is a shortcut to copy-paste for a complete build: |
|---|
| 16 | 14 | |
|---|
| 17 | | make distclean 2>/dev/null ; ./configure --prefix=/usr --enable-gnome \ |
|---|
| | 15 | make distclean && ./configure --prefix=/usr --enable-gnome \ |
|---|
| 18 | 16 | --enable-fb --with-glide --with-ggi --with-sdl --enable-esd \ |
|---|
| 19 | | --enable-alsa --enable-mga --enable-gtk --enable-qt --enable-xvideo \ |
|---|
| 20 | | && make |
|---|
| | 17 | --enable-alsa --enable-mga --enable-gtk --enable-qt --enable-xvideo |
|---|
| 21 | 18 | |
|---|
| 22 | 19 | If you intend to debug stuff, you may want to disable optimizations: |
|---|
| 23 | 20 | |
|---|
| 24 | | make distclean 2>/dev/null ; ./configure --prefix=/usr --enable-gnome \ |
|---|
| | 21 | make distclean && ./configure --prefix=/usr --enable-gnome \ |
|---|
| 25 | 22 | --enable-fb --with-glide --with-ggi --with-sdl --enable-esd \ |
|---|
| 26 | 23 | --enable-alsa --enable-mga --enable-gtk --enable-qt --enable-xvideo \ |
|---|
| 27 | | --disable-optimizatons && make |
|---|
| | 24 | --disable-optimizatons |
|---|
| | 25 | |
|---|
| | 26 | |
|---|
| | 27 | Building VideoLAN |
|---|
| | 28 | ================= |
|---|
| | 29 | |
|---|
| | 30 | Have a look at the generated Makefile.opts file, you may want to choose |
|---|
| | 31 | which modules will be compiled as plugins, and which ones will remain in |
|---|
| | 32 | the core application. The configure script tries to guess for you. |
|---|
| | 33 | |
|---|
| | 34 | Once configured, run `make' to build vlc. |
|---|
| 28 | 35 | |
|---|
| 29 | 36 | |
|---|
| r79a45f7 |
r6116299 |
|
| 3 | 3 | ############################################################################### |
|---|
| 4 | 4 | |
|---|
| 5 | | include Makefile.opts |
|---|
| | 5 | -include Makefile.opts |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | ############################################################################### |
|---|
| … | … | |
| 30 | 30 | mpeg/ps mpeg/ts null/null qt/qt sdl/sdl \ |
|---|
| 31 | 31 | text/text x11/x11 x11/xvideo yuv/yuv yuv/yuvmmx |
|---|
| 32 | | |
|---|
| 33 | | # |
|---|
| 34 | | # Translate plugin names |
|---|
| 35 | | # |
|---|
| 36 | | PLUGINS_OBJ := $(shell for i in : $(PLUGINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed 's@.*/\('$$i'\) .*@lib/\1.so@ ; s@^ .*@@' ; done) |
|---|
| 37 | | BUILTINS_OBJ := $(shell for i in : $(BUILTINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed 's@.*/\('$$i'\) .*@lib/\1.a@ ; s@^ .*@@' ; done) |
|---|
| 38 | 32 | |
|---|
| 39 | 33 | # |
|---|
| … | … | |
| 145 | 139 | # Other lists of files |
|---|
| 146 | 140 | # |
|---|
| 147 | | objects := $(C_OBJ) |
|---|
| 148 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 149 | | cppobjects := $(CPP_OBJ) |
|---|
| 150 | | cppdependancies := $(cppobjects:%.o=.dep/%.dpp) |
|---|
| | 141 | C_DEP := $(C_OBJ:%.o=.dep/%.d) |
|---|
| | 142 | CPP_DEP := $(CPP_OBJ:%.o=.dep/%.dpp) |
|---|
| | 143 | |
|---|
| | 144 | # |
|---|
| | 145 | # Translate plugin names |
|---|
| | 146 | # |
|---|
| | 147 | PLUGIN_OBJ := $(shell for i in : $(PLUGINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@lib/\1.so@' -e 's@^ .*@@' ; done) |
|---|
| | 148 | BUILTIN_OBJ := $(shell for i in : $(BUILTINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@lib/\1.a@' -e 's@^ .*@@' ; done) |
|---|
| 151 | 149 | |
|---|
| 152 | 150 | # All symbols must be exported |
|---|
| … | … | |
| 161 | 159 | # |
|---|
| 162 | 160 | all: vlc ${ALIASES} plugins vlc.app |
|---|
| 163 | | |
|---|
| 164 | | Makefile.opts: |
|---|
| 165 | | @echo |
|---|
| 166 | | @echo "Sorry, you need to run ./configure before using this makefile." |
|---|
| 167 | | @echo "To make clean or make distclean, use this:" |
|---|
| 168 | | @echo |
|---|
| 169 | | @echo " touch Makefile.opts Makefile.modules && make distclean" |
|---|
| 170 | | @echo |
|---|
| 171 | | @exit 1 |
|---|
| 172 | 161 | |
|---|
| 173 | 162 | clean: |
|---|
| … | … | |
| 209 | 198 | @echo objects: $(objects) |
|---|
| 210 | 199 | @echo cppobjects: $(cppobjects) |
|---|
| 211 | | @echo PLUGINS_OBJ: $(PLUGINS_OBJ) |
|---|
| 212 | | @echo BUILTINS_OBJ: $(BUILTINS_OBJ) |
|---|
| | 200 | @echo PLUGIN_OBJ: $(PLUGIN_OBJ) |
|---|
| | 201 | @echo BUILTIN_OBJ: $(BUILTIN_OBJ) |
|---|
| 213 | 202 | |
|---|
| 214 | 203 | |
|---|
| … | … | |
| 222 | 211 | find debian -mindepth 1 -maxdepth 1 -type d | \ |
|---|
| 223 | 212 | while read i ; do rm -Rf /tmp/vlc-${PROGRAM_VERSION}/$$i ; done |
|---|
| 224 | | # .c .h .in .cpp |
|---|
| 225 | | find include src plugins -type f -name '*.[chi]*' | while read i ; \ |
|---|
| 226 | | do cp $$i /tmp/vlc-${PROGRAM_VERSION}/$$i ; \ |
|---|
| 227 | | done |
|---|
| | 213 | # .c .h .in .cpp .glade |
|---|
| | 214 | find include src plugins -type f -name '*.[chig]*' | while read i ; \ |
|---|
| | 215 | do cp $$i /tmp/vlc-${PROGRAM_VERSION}/$$i ; done |
|---|
| | 216 | # Makefiles |
|---|
| | 217 | find . plugins -type f -name Makefile | while read i ; \ |
|---|
| | 218 | do cp $$i /tmp/vlc-${PROGRAM_VERSION}/$$i ; done |
|---|
| 228 | 219 | # extra files |
|---|
| 229 | 220 | cp -a extras/* /tmp/vlc-${PROGRAM_VERSION}/extras |
|---|
| … | … | |
| 236 | 227 | # copy misc files |
|---|
| 237 | 228 | cp vlc.spec AUTHORS COPYING ChangeLog INSTALL README TODO todo.pl \ |
|---|
| 238 | | Makefile Makefile.opts.in Makefile.dep Makefile.modules \ |
|---|
| | 229 | Makefile.opts.in Makefile.dep Makefile.modules.in \ |
|---|
| 239 | 230 | configure configure.in install-sh config.sub config.guess \ |
|---|
| 240 | 231 | /tmp/vlc-${PROGRAM_VERSION}/ |
|---|
| … | … | |
| 244 | 235 | cp debian/$$file /tmp/vlc-${PROGRAM_VERSION}/debian/ ; \ |
|---|
| 245 | 236 | done |
|---|
| 246 | | for file in default8x16.psf default8x9.psf vlc_beos.rsrc ; do \ |
|---|
| | 237 | for file in default8x16.psf default8x9.psf vlc_beos.rsrc vlc.icns ; do \ |
|---|
| 247 | 238 | cp share/$$file /tmp/vlc-${PROGRAM_VERSION}/share/ ; done |
|---|
| 248 | 239 | for icon in vlc gvlc qvlc gnome-vlc kvlc ; do \ |
|---|
| … | … | |
| 288 | 279 | # Generic rules (see below) |
|---|
| 289 | 280 | # |
|---|
| 290 | | $(cdependancies): %.d: FORCE |
|---|
| | 281 | $(C_DEP): %.d: FORCE |
|---|
| 291 | 282 | @$(MAKE) -s --no-print-directory -f Makefile.dep $@ |
|---|
| 292 | 283 | |
|---|
| 293 | | $(cppdependancies): %.dpp: FORCE |
|---|
| | 284 | $(CPP_DEP): %.dpp: FORCE |
|---|
| 294 | 285 | @$(MAKE) -s --no-print-directory -f Makefile.dep $@ |
|---|
| 295 | 286 | |
|---|
| 296 | | $(H_OBJ): Makefile.opts Makefile |
|---|
| | 287 | $(H_OBJ): Makefile.opts Makefile.dep Makefile |
|---|
| 297 | 288 | rm -f $@ && cp $@.in $@ |
|---|
| 298 | 289 | for i in $(BUILTINS) ; do \ |
|---|
| … | … | |
| 308 | 299 | echo "};" >> $@ ; |
|---|
| 309 | 300 | |
|---|
| 310 | | $(C_OBJ): %.o: Makefile.dep |
|---|
| | 301 | $(C_OBJ): %.o: Makefile.opts Makefile.dep Makefile |
|---|
| 311 | 302 | $(C_OBJ): %.o: .dep/%.d |
|---|
| 312 | 303 | $(C_OBJ): %.o: %.c |
|---|
| … | … | |
| 318 | 309 | endif |
|---|
| 319 | 310 | |
|---|
| 320 | | $(CPP_OBJ): %.o: Makefile.dep |
|---|
| | 311 | $(CPP_OBJ): %.o: Makefile.opts Makefile.dep Makefile |
|---|
| 321 | 312 | $(CPP_OBJ): %.o: .dep/%.dpp |
|---|
| 322 | 313 | $(CPP_OBJ): %.o: %.cpp |
|---|
| … | … | |
| 326 | 317 | # Main application target |
|---|
| 327 | 318 | # |
|---|
| 328 | | vlc: $(H_OBJ) $(C_OBJ) $(CPP_OBJ) $(BUILTINS_OBJ) |
|---|
| 329 | | $(CC) $(CFLAGS) -o $@ $(C_OBJ) $(CPP_OBJ) $(BUILTINS_OBJ) $(LCFLAGS) |
|---|
| | 319 | vlc: Makefile.opts Makefile.dep Makefile $(H_OBJ) $(C_OBJ) $(CPP_OBJ) $(BUILTIN_OBJ) |
|---|
| | 320 | $(CC) $(CFLAGS) -o $@ $(C_OBJ) $(CPP_OBJ) $(BUILTIN_OBJ) $(LCFLAGS) |
|---|
| 330 | 321 | ifeq ($(SYS),beos) |
|---|
| 331 | 322 | rm -f ./lib/_APP_ |
|---|
| … | … | |
| 338 | 329 | # Plugins target |
|---|
| 339 | 330 | # |
|---|
| 340 | | plugins: $(PLUGINS_OBJ) |
|---|
| 341 | | $(PLUGINS_OBJ): FORCE |
|---|
| 342 | | cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed 's@.* \([^/]*/\)'$(@:lib/%.so=%)' .*@plugins/\1@ ; s@^ .*@@') && $(MAKE) $(@:%=../../%) |
|---|
| | 331 | plugins: Makefile.modules Makefile.opts Makefile.dep Makefile $(PLUGIN_OBJ) |
|---|
| | 332 | $(PLUGIN_OBJ): FORCE |
|---|
| | 333 | cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:lib/%.so=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) $(@:%=../../%) |
|---|
| 343 | 334 | |
|---|
| 344 | 335 | # |
|---|
| 345 | 336 | # Built-in modules target |
|---|
| 346 | 337 | # |
|---|
| 347 | | builtins: $(BUILTINS_OBJ) |
|---|
| 348 | | $(BUILTINS_OBJ): FORCE |
|---|
| 349 | | cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed 's@.* \([^/]*/\)'$(@:lib/%.a=%)' .*@plugins/\1@ ; s@^ .*@@') && $(MAKE) $(@:%=../../%) |
|---|
| 350 | | |
|---|
| | 338 | builtins: Makefile.modules Makefile.opts Makefile.dep Makefile $(BUILTIN_OBJ) |
|---|
| | 339 | $(BUILTIN_OBJ): FORCE |
|---|
| | 340 | cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:lib/%.a=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) $(@:%=../../%) |
|---|
| | 341 | |
|---|
| r6b3c854 |
r6116299 |
|
| 46 | 46 | -include $(MAKECMDGOALS) |
|---|
| 47 | 47 | |
|---|
| 48 | | $(cdependancies): .dep/%.d: %.c |
|---|
| | 48 | $(C_DEP): .dep/%.d: %.c |
|---|
| 49 | 49 | @test -d .dep/$(dir $*) || mkdir -p .dep/$(dir $*) |
|---|
| 50 | 50 | #@echo "generating dependancies for $*.c" |
|---|
| … | … | |
| 54 | 54 | [ -s $@ ] || rm -f $@' |
|---|
| 55 | 55 | |
|---|
| 56 | | $(cppdependancies): .dep/%.dpp: %.cpp |
|---|
| | 56 | $(CPP_DEP): .dep/%.dpp: %.cpp |
|---|
| 57 | 57 | @test -d .dep/$(dir $*) || mkdir -p .dep/$(dir $*) |
|---|
| 58 | 58 | #@echo "generating dependancies for $*.c" |
|---|
| r79a45f7 |
r6116299 |
|
| 90 | 90 | # DEFINE will contain some of the constants definitions decided in Makefile, |
|---|
| 91 | 91 | # including SYS_xx. It will be passed to C compiler. |
|---|
| 92 | | DEFINE += -DSYS_$(shell echo $(SYS) | sed 's/-.*//' | tr '[a-z].' '[A-Z]_') |
|---|
| | 92 | DEFINE += -DSYS_$(shell echo $(SYS) | sed -e 's/-.*//' | tr '[a-z].' '[A-Z]_') |
|---|
| 93 | 93 | |
|---|
| 94 | 94 | # On Linux activate 64-bit off_t (by default under BSD) |
|---|
| … | … | |
| 116 | 116 | # Libraries needed by built-in modules |
|---|
| 117 | 117 | # |
|---|
| 118 | | LIB += $(shell for i in ${BUILTINS} ; do echo $$i | tr '[a-z]' '[A-Z]' | sed 's/.*/$$LIB_&/' ; done) |
|---|
| | 118 | LIB += $(shell for i in ${BUILTINS} ; do echo $$i | tr '[a-z]' '[A-Z]' | sed -e 's/.*/$$LIB_&/' ; done) |
|---|
| 119 | 119 | |
|---|
| 120 | 120 | # |
|---|
| r79a45f7 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_ALSA = alsa.o aout_alsa.o |
|---|
| 12 | | BUILTIN_ALSA = $(PLUGIN_ALSA:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_ALSA) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_ALSA) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = alsa.o aout_alsa.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/alsa.so: $(PLUGIN_ALSA) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/alsa.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_ALSA) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/alsa.a: $(BUILTIN_ALSA) |
|---|
| | 30 | ../../lib/alsa.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r79a45f7 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_BEOS = beos.o aout_beos.o vout_beos.o intf_beos.o DrawingTidbits.o TransportButton.o |
|---|
| 12 | | BUILTIN_BEOS = $(PLUGIN_BEOS:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | NONSTD_CPP_PLUGIN_OBJ = $(PLUGIN_BEOS) |
|---|
| 15 | | NONSTD_CPP_BUILTIN_OBJ = $(BUILTIN_BEOS) |
|---|
| 16 | | ALL_OBJ = $(NONSTD_CPP_PLUGIN_OBJ) $(NONSTD_CPP_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_CPP = beos.o aout_beos.o vout_beos.o intf_beos.o DrawingTidbits.o TransportButton.o |
|---|
| | 13 | BUILTIN_CPP = $(PLUGIN_CPP:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | cppobjects := $(NONSTD_CPP_PLUGIN_OBJ) $(NONSTD_CPP_BUILTIN_OBJ) |
|---|
| 19 | | cppdependancies := $(cppobjects:%.o=.dep/%.dpp) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_CPP) $(BUILTIN_CPP) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cppdependancies): %.dpp: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(PLUGIN_BEOS): %.o: .dep/%.dpp |
|---|
| 41 | | $(PLUGIN_BEOS): %.o: %.cpp |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(BUILTIN_BEOS): %-BUILTIN.o: .dep/%.dpp |
|---|
| 45 | | $(BUILTIN_BEOS): %-BUILTIN.o: %.cpp |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/beos.so: $(PLUGIN_BEOS) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/beos.so: $(PLUGIN_CPP) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_BEOS) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/beos.a: $(BUILTIN_BEOS) |
|---|
| | 30 | ../../lib/beos.a: $(BUILTIN_CPP) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r79a45f7 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_DARWIN = darwin.o |
|---|
| 12 | | BUILTIN_DARWIN = $(PLUGIN_DARWIN:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_DARWIN) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_DARWIN) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = darwin.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/darwin.so: $(PLUGIN_DARWIN) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/darwin.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_DARWIN) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/darwin.a: $(BUILTIN_DARWIN) |
|---|
| | 30 | ../../lib/darwin.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r5b51669 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_DSP = dsp.o aout_dsp.o |
|---|
| 12 | | BUILTIN_DSP = $(PLUGIN_DSP:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_DSP) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_DSP) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = dsp.o aout_dsp.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/dsp.so: $(PLUGIN_DSP) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/dsp.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/dsp.a: $(BUILTIN_DSP) |
|---|
| | 30 | ../../lib/dsp.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r5b51669 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_DUMMY = dummy.o aout_dummy.o vout_dummy.o intf_dummy.o |
|---|
| 12 | | BUILTIN_DUMMY = $(PLUGIN_DUMMY:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_DUMMY) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_DUMMY) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = dummy.o aout_dummy.o vout_dummy.o intf_dummy.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/dummy.so: $(PLUGIN_DUMMY) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/dummy.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/dummy.a: $(BUILTIN_DUMMY) |
|---|
| | 30 | ../../lib/dummy.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r5b51669 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_DVD = dvd.o input_dvd.o dvd_netlist.o dvd_ioctl.o dvd_ifo.o dvd_udf.o dvd_css.o |
|---|
| 12 | | BUILTIN_DVD = $(PLUGIN_DVD:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | ALL_OBJ = $(PLUGIN_DVD) $(BUILTIN_DVD) |
|---|
| | 12 | PLUGIN_C = dvd.o input_dvd.o dvd_netlist.o dvd_ioctl.o dvd_ifo.o dvd_udf.o dvd_css.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 15 | 14 | |
|---|
| 16 | | objects := $(ALL_OBJ) |
|---|
| 17 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 18 | | |
|---|
| 19 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 20 | 16 | |
|---|
| 21 | 17 | # |
|---|
| 22 | 18 | # Virtual targets |
|---|
| 23 | 19 | # |
|---|
| 24 | | all: |
|---|
| 25 | 20 | |
|---|
| 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_DVD): %.o: .dep/%.d |
|---|
| 39 | | $(PLUGIN_DVD): %.o: %.c |
|---|
| 40 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 41 | | |
|---|
| 42 | | $(BUILTIN_DVD): %-BUILTIN.o: .dep/%.d |
|---|
| 43 | | $(BUILTIN_DVD): %-BUILTIN.o: %.c |
|---|
| 44 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 45 | 22 | |
|---|
| 46 | 23 | # |
|---|
| 47 | 24 | # Real targets |
|---|
| 48 | 25 | # |
|---|
| 49 | | ../../lib/dvd.so: $(PLUGIN_DVD) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/dvd.so: $(PLUGIN_C) |
|---|
| 50 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) |
|---|
| 51 | 29 | |
|---|
| 52 | | ../../lib/dvd.a: $(BUILTIN_DVD) |
|---|
| | 30 | ../../lib/dvd.a: $(BUILTIN_C) |
|---|
| 53 | 31 | ar r $@ $^ |
|---|
| 54 | 32 | |
|---|
| r79a45f7 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_ESD = esd.o aout_esd.o |
|---|
| 12 | | BUILTIN_ESD = $(PLUGIN_ESD:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_ESD) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_ESD) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = esd.o aout_esd.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/esd.so: $(PLUGIN_ESD) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/esd.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_ESD) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/esd.a: $(BUILTIN_ESD) |
|---|
| | 30 | ../../lib/esd.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r5b51669 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_FB = fb.o vout_fb.o |
|---|
| 12 | | BUILTIN_FB = $(PLUGIN_FB:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_FB) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_FB) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = fb.o vout_fb.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/fb.so: $(PLUGIN_FB) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/fb.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/fb.a: $(BUILTIN_FB) |
|---|
| | 30 | ../../lib/fb.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r5b51669 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| 11 | | PLUGIN_GGI = ggi.o vout_ggi.o |
|---|
| 12 | | BUILTIN_GGI = $(PLUGIN_GGI:%.o=%-BUILTIN.o) |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| 13 | 11 | |
|---|
| 14 | | STD_PLUGIN_OBJ = $(PLUGIN_GGI) |
|---|
| 15 | | STD_BUILTIN_OBJ = $(BUILTIN_GGI) |
|---|
| 16 | | ALL_OBJ = $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| | 12 | PLUGIN_C = ggi.o vout_ggi.o |
|---|
| | 13 | BUILTIN_C = $(PLUGIN_C:%.o=BUILTIN_%.o) |
|---|
| 17 | 14 | |
|---|
| 18 | | objects := $(STD_PLUGIN_OBJ) $(STD_BUILTIN_OBJ) |
|---|
| 19 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 20 | | |
|---|
| 21 | | export |
|---|
| | 15 | ALL_OBJ = $(PLUGIN_C) $(BUILTIN_C) |
|---|
| 22 | 16 | |
|---|
| 23 | 17 | # |
|---|
| 24 | 18 | # Virtual targets |
|---|
| 25 | 19 | # |
|---|
| 26 | | all: |
|---|
| 27 | 20 | |
|---|
| 28 | | clean: |
|---|
| 29 | | rm -f $(ALL_OBJ) |
|---|
| 30 | | rm -f *.o *.moc *.bak *.builtin |
|---|
| 31 | | rm -rf .dep |
|---|
| 32 | | |
|---|
| 33 | | FORCE: |
|---|
| 34 | | |
|---|
| 35 | | $(cdependancies): %.d: FORCE |
|---|
| 36 | | @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ |
|---|
| 37 | | |
|---|
| 38 | | $(ALL_OBJ): %.o: ../../Makefile.dep Makefile |
|---|
| 39 | | |
|---|
| 40 | | $(STD_PLUGIN_OBJ): %.o: .dep/%.d |
|---|
| 41 | | $(STD_PLUGIN_OBJ): %.o: %.c |
|---|
| 42 | | $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $< |
|---|
| 43 | | |
|---|
| 44 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: .dep/%.d |
|---|
| 45 | | $(STD_BUILTIN_OBJ): %-BUILTIN.o: %.c |
|---|
| 46 | | $(CC) $(CFLAGS) -DBUILTIN -c -o $@ $< |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 47 | 22 | |
|---|
| 48 | 23 | # |
|---|
| 49 | 24 | # Real targets |
|---|
| 50 | 25 | # |
|---|
| 51 | | ../../lib/ggi.so: $(PLUGIN_GGI) |
|---|
| | 26 | |
|---|
| | 27 | ../../lib/ggi.so: $(PLUGIN_C) |
|---|
| 52 | 28 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_GGI) |
|---|
| 53 | 29 | |
|---|
| 54 | | ../../lib/ggi.a: $(BUILTIN_GGI) |
|---|
| | 30 | ../../lib/ggi.a: $(BUILTIN_C) |
|---|
| 55 | 31 | ar r $@ $^ |
|---|
| 56 | 32 | |
|---|
| r5b51669 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | include ../../Makefile.modules |
|---|
| | 6 | -include ../../Makefile.modules |
|---|
| 7 | 7 | |
|---|
| 8 | | ############################################################################### |
|---|
| 9 | | # Objects and files |
|---|
| 10 | | ############################################################################### |
|---|
| | 8 | # |
|---|
| | 9 | # Objects |
|---|
| | 10 | # |
|---|
| | 11 | |
|---|
| 11 | 12 | PLUGIN_GLIDE = glide.o vout_glide.o |
|---|
| 12 | | BUILTIN_GLIDE = $(PLUGIN_GLIDE:%.o=%-BUILTIN.o) |
|---|
| | 13 | BUILTIN_GLIDE = $(PLUGIN_GLIDE:%.o=BUILTIN_%.o) |
|---|
| 13 | 14 | |
|---|
| 14 | 15 | ALL_OBJ = $(PLUGIN_GLIDE) $(BUILTIN_GLIDE) |
|---|
| 15 | | |
|---|
| 16 | | objects := $(PLUGIN_GLIDE) $(BUILTIN_GLIDE) |
|---|
| 17 | | cdependancies := $(objects:%.o=.dep/%.d) |
|---|
| 18 | | |
|---|
| 19 | | export |
|---|
| 20 | 16 | |
|---|
| 21 | 17 | # |
|---|
| 22 | 18 | # Virtual targets |
|---|
| 23 | 19 | # |
|---|
| 24 | | all: |
|---|
| 25 | 20 | |
|---|
| 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 |
|---|
| | 21 | include ../../Makefile.common |
|---|
| 37 | 22 | |
|---|
| 38 | 23 | $(PLUGIN_GLIDE): %.o: .dep/%.d |
|---|
| … | … | |
| 40 | 25 | $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/glide -c -o $@ $< |
|---|
| 41 | 26 | |
|---|
| 42 | | $(BUILTIN_GLIDE): %-BUILTIN.o: .dep/%.d |
|---|
| 43 | | $(BUILTIN_GLIDE): %-BUILTIN.o: %.c |
|---|
| | 27 | $(BUILTIN_GLIDE): BUILTIN_%.o: .dep/%.d |
|---|
| | 28 | $(BUILTIN_GLIDE): BUILTIN_%.o: %.c |
|---|
| 44 | 29 | $(CC) $(CFLAGS) -DBUILTIN -I/usr/include/glide -c -o $@ $< |
|---|
| 45 | 30 | |
|---|
| … | … | |
| 47 | 32 | # Real targets |
|---|
| 48 | 33 | # |
|---|
| | 34 | |
|---|
| 49 | 35 | ../../lib/glide.so: $(PLUGIN_GLIDE) |
|---|
| 50 | 36 | $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) $(LIB_GLIDE) |
|---|
| r79a45f7 |
r6116299 |
|
| 4 | 4 | ############################################################################### |
|---|
| 5 | 5 | |
|---|
| 6 | | |
|---|