Revision 304d586d common.mak

View differences:

common.mak
8 8
vpath %.c $(SRC_DIR)
9 9
vpath %.h $(SRC_DIR)
10 10
vpath %.S $(SRC_DIR)
11
vpath %.asm $(SRC_DIR)
11 12

  
12 13
ifeq ($(SRC_DIR),$(SRC_PATH_BARE))
13 14
BUILD_ROOT_REL = .
......
96 97
$(SUBDIR)%-test.o: $(SUBDIR)%-test.c
97 98
	$(CC) $(CFLAGS) -DTEST -c -o $$@ $$^
98 99

  
100
$(SUBDIR)i386/%.o: $(SUBDIR)i386/%.asm
101
	$(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$<
102

  
103
$(SUBDIR)i386/%.d: $(SUBDIR)i386/%.asm
104
	$(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@
105

  
99 106
clean::
100 107
	rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
101 108
	    $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))

Also available in: Unified diff