1 |
############################################################################## |
############################################################################## |
2 |
# |
# |
3 |
# - Unified Makefile for XviD for *nix environments - |
# - Unified Makefile for Xvid for *nix environments - |
4 |
# |
# |
5 |
# Copyright(C) 2003-2004 Edouard Gomez <ed.gomez@free.fr> |
# Copyright(C) 2003-2004 Edouard Gomez <ed.gomez@free.fr> |
6 |
# |
# |
7 |
# |
# |
8 |
# Description: |
# Description: |
9 |
# This Makefile allows building XviD sources to obtain a shared library |
# This Makefile allows building Xvid sources to obtain a shared library |
10 |
# and a static library. This Makefile uses variables defined in the |
# and a static library. This Makefile uses variables defined in the |
11 |
# platform.inc file. This platform.inc file is usually created by the |
# platform.inc file. This platform.inc file is usually created by the |
12 |
# ./configure script whenever a unix shell is available. |
# ./configure script whenever a unix shell is available. |
71 |
all: $(STATIC_LIB) $(SHARED_LIB) |
all: $(STATIC_LIB) $(SHARED_LIB) |
72 |
@echo |
@echo |
73 |
@echo "---------------------------------------------------------------" |
@echo "---------------------------------------------------------------" |
74 |
@echo " XviD has been successfully built." |
@echo " Xvid has been successfully built." |
75 |
@echo |
@echo |
76 |
@echo " * Binaries are currently located in the '$(BUILD_DIR)' directory" |
@echo " * Binaries are currently located in the '$(BUILD_DIR)' directory" |
77 |
@echo " * To install them on your system, you can run '# make install'" |
@echo " * To install them on your system, you can run '# make install'" |
98 |
# Generic C rule |
# Generic C rule |
99 |
#----------------------------------------------------------------------------- |
#----------------------------------------------------------------------------- |
100 |
|
|
101 |
|
$(PPC_ALTIVEC_OBJECTS): CFLAGS+= $(ALTIVEC_CFLAGS) |
102 |
|
|
103 |
.c.$(OBJECT_EXTENSION): |
.c.$(OBJECT_EXTENSION): |
104 |
@echo " C: $(@D)/$(<F)" |
@echo " C: $(@D)/$(<F)" |
105 |
@$(INSTALL) -d $(BUILD_DIR)/$(@D) |
@$(INSTALL) -d $(BUILD_DIR)/$(@D) |
111 |
|
|
112 |
$(STATIC_LIB): $(BUILD_DIR) $(OBJECTS) |
$(STATIC_LIB): $(BUILD_DIR) $(OBJECTS) |
113 |
@echo " L: $(@F)" |
@echo " L: $(@F)" |
114 |
@cd $(BUILD_DIR) && ar rc $(@F) $(OBJECTS) && $(RANLIB) $(@F) |
@cd $(BUILD_DIR) && $(AR) rc $(@F) $(OBJECTS) && $(RANLIB) $(@F) |
115 |
|
|
116 |
#----------------------------------------------------------------------------- |
#----------------------------------------------------------------------------- |
117 |
# Shared Library |
# Shared Library |