diff options
author | 2008-07-06 13:41:08 +0000 | |
---|---|---|
committer | 2008-07-06 13:41:08 +0000 | |
commit | 5400ae771d4e0356bde7c8fac81a66cc93402ae2 (patch) | |
tree | 5d1a921a58d529faba385f3cbf22ff37afd74205 | |
parent | 24383a02d1c69a32add62dbc58b94b4743d70970 (diff) |
Introduce DRIVER_OBJS variable for list of all driver targets.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27223 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -982,10 +982,11 @@ KERNEL_VERSION = $(shell grep RELEASE $(KERNEL_INC)/linux/version.h | cut -d'"' KERNEL_CFLAGS = -O2 -D__KERNEL__ -DMODULE -Wall -I$(KERNEL_INC) -include $(KERNEL_INC)/linux/modversions.h KERNEL_OBJS = $(addprefix drivers/, mga_vid.o tdfx_vid.o radeon_vid.o rage128_vid.o) MODULES_DIR = /lib/modules/$(KERNEL_VERSION)/misc +DRIVER_OBJS = $(KERNEL_OBJS) drivers/mga_vid_test drivers/tdfx_vid_test -drivers: $(KERNEL_OBJS) drivers/mga_vid_test drivers/tdfx_vid_test +drivers: $(DRIVER_OBJS) -$(KERNEL_OBJS) drivers/mga_vid_test drivers/tdfx_vid_test: CFLAGS = $(KERNEL_CFLAGS) +$(DRIVER_OBJS): CFLAGS = $(KERNEL_CFLAGS) drivers/mga_vid.o: drivers/mga_vid.c drivers/mga_vid.h drivers/tdfx_vid.o: drivers/tdfx_vid.c drivers/3dfx.h drivers/radeon_vid.o drivers/rage128_vid.o: CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math @@ -993,7 +994,7 @@ drivers/radeon_vid.o: drivers/radeon_vid.c drivers/radeon.h drivers/radeon_vid.h drivers/rage128_vid.o: drivers/radeon_vid.c drivers/radeon.h drivers/radeon_vid.h $(CC) $(CFLAGS) -DRAGE128 -c $< -o $@ -install-drivers: drivers +install-drivers: $(DRIVER_OBJS) -mkdir -p $(MODULES_DIR) install -m 644 $(KERNEL_OBJS) $(MODULES_DIR) depmod -a @@ -1003,7 +1004,7 @@ install-drivers: drivers -ln -s /dev/radeon_vid /dev/rage128_vid driversclean: - rm -f drivers/*.o drivers/*~ drivers/mga_vid_test drivers/tdfx_vid_test + rm -f $(DRIVER_OBJS) drivers/*~ dhahelper: vidix/dhahelper/dhahelper.o vidix/dhahelper/test |