diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2008-08-11 23:53:31 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2008-08-11 23:53:31 +0000 |
commit | 304d586de6ccc14a4b857a038b738774ca818ea3 (patch) | |
tree | 4e1fdfbb9c03803d5ca4e37cff0508ed319c44ab /common.mak | |
parent | 9edae4ad817dc51baae127368662d090f86482c2 (diff) | |
download | ffmpeg-304d586de6ccc14a4b857a038b738774ca818ea3.tar.gz |
yasm buildsystem
Originally committed as revision 14696 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common.mak b/common.mak index 93176c5389..cccd00b23d 100644 --- a/common.mak +++ b/common.mak @@ -8,6 +8,7 @@ ifndef SUBDIR vpath %.c $(SRC_DIR) vpath %.h $(SRC_DIR) vpath %.S $(SRC_DIR) +vpath %.asm $(SRC_DIR) ifeq ($(SRC_DIR),$(SRC_PATH_BARE)) BUILD_ROOT_REL = . @@ -96,6 +97,12 @@ $(SUBDIR)%-test.o: $(SUBDIR)%.c $(SUBDIR)%-test.o: $(SUBDIR)%-test.c $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^ +$(SUBDIR)i386/%.o: $(SUBDIR)i386/%.asm + $(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$< + +$(SUBDIR)i386/%.d: $(SUBDIR)i386/%.asm + $(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@ + clean:: rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \ $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) |