2 |
# |
# |
3 |
# - Unified Makefile for XviD for *nix environments - |
# - Unified Makefile for XviD for *nix environments - |
4 |
# |
# |
5 |
# Copyright(C) 2003 Edouard Gomez <ed.gomez@free.fr> |
# Copyright(C) 2003-2004 Edouard Gomez <ed.gomez@free.fr> |
6 |
# |
# |
7 |
# |
# |
8 |
# Description: |
# Description: |
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. |
13 |
# |
# |
14 |
# Makefile functionnal dependencies: |
# Makefile functional dependencies: |
15 |
# - echo |
# - echo |
16 |
# - rm (with option -r and -f) |
# - rm (with option -r and -f) |
17 |
# - cd |
# - cd |
18 |
# - make VPATH support (eg: GNU make, solaris 8 make) |
# - make VPATH support (eg: GNU make, solaris 8 make) |
19 |
|
# - ar |
20 |
# |
# |
21 |
# Building output: |
# Building output: |
22 |
# - C means "_C_ompiling" |
# - C means "_C_ompiling" |
57 |
OBJECTS += $(DCT_IA64_OBJECTS) |
OBJECTS += $(DCT_IA64_OBJECTS) |
58 |
OBJECTS += $(PPC_ALTIVEC_OBJECTS) |
OBJECTS += $(PPC_ALTIVEC_OBJECTS) |
59 |
|
|
60 |
# The VPATH mecanism could use a "per target" build directory |
# The VPATH mechanism could use a "per target" build directory |
61 |
# To keep it simple at the moment, the directory is fixed to "build" |
# To keep it simple at the moment, the directory is fixed to "build" |
62 |
BUILD_DIR = =build |
BUILD_DIR = =build |
63 |
VPATH = $(SRC_DIR):$(BUILD_DIR) |
VPATH = $(SRC_DIR):$(BUILD_DIR) |
137 |
|
|
138 |
install: $(BUILD_DIR)/$(STATIC_LIB) $(BUILD_DIR)/$(SHARED_LIB) |
install: $(BUILD_DIR)/$(STATIC_LIB) $(BUILD_DIR)/$(SHARED_LIB) |
139 |
@echo " D: $(libdir)" |
@echo " D: $(libdir)" |
140 |
@$(INSTALL) -d $(libdir) |
@$(INSTALL) -d $(DESTDIR)$(libdir) |
141 |
@echo " I: $(libdir)/$(SHARED_LIB)" |
@echo " I: $(libdir)/$(SHARED_LIB)" |
142 |
@$(INSTALL) -m 755 $(BUILD_DIR)/$(SHARED_LIB) $(libdir)/$(SHARED_LIB) |
@$(INSTALL) -m 755 $(BUILD_DIR)/$(SHARED_LIB) $(DESTDIR)$(libdir)/$(SHARED_LIB) |
143 |
@echo " I: $(libdir)/$(STATIC_LIB)" |
@echo " I: $(libdir)/$(STATIC_LIB)" |
144 |
@$(INSTALL) -m 755 $(BUILD_DIR)/$(STATIC_LIB) $(libdir)/$(STATIC_LIB) |
@$(INSTALL) -m 755 $(BUILD_DIR)/$(STATIC_LIB) $(DESTDIR)$(libdir)/$(STATIC_LIB) |
145 |
@echo " D: $(includedir)" |
@echo " D: $(includedir)" |
146 |
@$(INSTALL) -d $(includedir) |
@$(INSTALL) -d $(DESTDIR)$(includedir) |
147 |
@echo " I: $(includedir)/xvid.h" |
@echo " I: $(includedir)/xvid.h" |
148 |
@$(INSTALL) -m 644 $(SRC_DIR)/xvid.h $(includedir)/xvid.h |
@$(INSTALL) -m 644 $(SRC_DIR)/xvid.h $(DESTDIR)$(includedir)/xvid.h |
149 |
|
|
150 |
#----------------------------------------------------------------------------- |
#----------------------------------------------------------------------------- |
151 |
# Platorm specific file -- dumb rules for people executing make before |
# Platorm specific file -- dumb rules for people executing make before |
177 |
@$(RM) autom4te.cache |
@$(RM) autom4te.cache |
178 |
|
|
179 |
mrproper: distclean |
mrproper: distclean |
180 |
@echo " Cl: Boostrapped build files" |
@echo " Cl: Bootstrapped build files" |
181 |
@$(RM) configure |
@$(RM) configure |
182 |
@$(RM) install-sh |
@$(RM) install-sh |
183 |
@$(RM) missing |
@$(RM) missing |