From cefd4199e6ca91347205316243c93ef2393d37d7 Mon Sep 17 00:00:00 2001 From: Jean-Marc Dressler Date: Sun, 12 Dec 1999 18:04:37 +0000 Subject: [PATCH] =?UTF-8?q?Gr=EF=BF=BDce=20=EF=BF=BD=20Jimmy,=20plus=20bes?= =?UTF-8?q?oin=20de=20compiler=20les=20fichiers=20assembleurs=20=EF=BF=BD?= =?UTF-8?q?=20part,=20le=20make=20se=20d=EF=BF=BDbrouille=20tout=20seul=20?= =?UTF-8?q?comme=20un=20grand=20en=20utilisant=20gcc=20pour=20compiler=20l?= =?UTF-8?q?es=20.S?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 649c645d53..a401258f02 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,8 @@ CCFLAGS += -march=pentiumpro # MMX support : CFLAGS += -DHAVE_MMX -assembly_obj = video_decoder_ref/idctmmx.o \ - video_decoder_ref/yuv12-rgb16.o +ASM_OBJ = video_decoder_ref/idctmmx.o \ + video_decoder_ref/yuv12-rgb16.o #Optimizations for PowerPC : #CCFLAGS += -mcpu=604e -mmultiple -mhard-float -mstring @@ -161,7 +161,7 @@ misc_obj = misc/mtime.o \ misc/rsc_files.o \ misc/netutils.o -OBJ = $(interface_obj) \ +C_OBJ = $(interface_obj) \ $(input_obj) \ $(audio_output_obj) \ $(video_output_obj) \ @@ -169,13 +169,12 @@ OBJ = $(interface_obj) \ $(generic_decoder_obj) \ $(video_decoder_obj) \ $(vlan_obj) \ - $(misc_obj) - + $(misc_obj) \ # # Other lists of files # -sources := $(OBJ:%.o=%.c) +sources := $(C_OBJ:%.o=%.c) dependancies := $(sources:%.c=dep/%.d) # All symbols must be exported @@ -191,7 +190,7 @@ export all: vlc clean: - rm -f $(OBJ) + rm -f $(C_OBJ) $(ASM_OBJ) distclean: clean rm -f **/*.o **/*~ *.log @@ -203,8 +202,8 @@ FORCE: # # Real targets # -vlc: $(OBJ) - $(CC) $(LCFLAGS) $(CFLAGS) -o $@ $(OBJ) $(assembly_obj) +vlc: $(C_OBJ) $(ASM_OBJ) + $(CC) $(LCFLAGS) $(CFLAGS) -o $@ $(C_OBJ) $(ASM_OBJ) Documentation/cflow: $(sources) cflow $(FCFLAGS) $(CFLAGS) $(sources) | $(FFILTER) > $@ @@ -215,9 +214,12 @@ Documentation/cflow: $(sources) $(dependancies): %.d: FORCE @make -s --no-print-directory -f Makefile.dep $@ -$(OBJ): %.o: dep/%.d -$(OBJ): %.o: %.c +$(C_OBJ): %.o: dep/%.d + +$(C_OBJ): %.o: %.c $(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $< +$(ASM_OBJ): %.o: %.S + $(CC) -c -o $@ $< ################################################################################ # Note on generic rules and dependancies