brintos

brintos / llvm-project-archived public Read only

0
0
Text · 749 B · 8060c20 Raw
28 lines · plain
1C_SOURCES := main.c a.c b.c c.c2EXE :=  # Define a.out explicitly3MAKE_DSYM := NO4 5all: a.out6 7a.out: main.o libfoo.a8	$(LD) $(LDFLAGS) $^ -o $@9 10lib_ab.a: a.o b.o11	$(AR) $(ARFLAGS) $@ $^12	$(RM) $^13 14# Here we make a .a file that has two a.o files with different modification15# times and different content by first creating libfoo.a with only a.o and b.o,16# then we sleep for 2 seconds, touch c.o to ensure it has a different17# modification time, and then rename c.o to a.o and then add it to the .a file18# again. This is to help test that the module cache will create different19# directories for the two different a.o files.20libfoo.a: lib_ab.a c.o21	sleep 222	touch c.o23	mv c.o a.o24	$(AR) $(ARFLAGS) $@ lib_ab.a a.o25	$(RM) a.o26 27include Makefile.rules28