3 # Make an archive that has two object files with the same name, but
4 # different timestamps. Do it all in one rule so that the timestamps
5 # can be controlled without confusing Make.
7 $(CC
) $(CFLAGS
) -c
$(<D
)/a.c
-o a.o
9 $(CC
) $(CFLAGS
) -c
$(<D
)/sub1
/a.c
-o sub1
/a.o
10 touch
-t
'198001010000.00' a.o
11 touch
-t
'198001010000.01' sub1
/a.o
12 $(AR
) $(ARFLAGS
) $@ a.o sub1
/a.o
15 include Makefile.rules
17 # Needs to come after include
20 .DEFAULT_GOAL
:= $(EXE
)