summaryrefslogtreecommitdiff
path: root/mk/atomic_flag.d
blob: f22c2462db86ac3c246f016c0a2e4754da97367b (plain)
1
2
3
4
5
6
7
8
libc_C.201112: libc.a(atomic_flag.o)
libc.a(atomic_flag.o): $(OBJDIR)/atomic_flag.o
	@$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%

$(OBJDIR)/atomic_flag.o: src/stdatomic/atomic_flag.c
$(OBJDIR)/atomic_flag.o:
	@mkdir -p $(@D)
	$(CC) -c -o $@ $(CFLAGS) src/stdatomic/atomic_flag.c