1 # output architecture: x64, x86, arm
20 OBJS1
= $(patsubst %.c
,%.o
,$(wildcard *.c
))
21 OBJS2
= $(patsubst %.s
,%.o
,$(wildcard $(OUT
)/*.s
))
23 start.o
: $(OUT
)/start.o
25 libc.a
: $(OBJS1
) $(OBJS2
)
26 $(AR
) rcs
$@
$(OBJS1
) $(OBJS2
)
29 rm -f
*.o
*.a x86
/*.o arm
/*.o x64
/*.o