diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-05-31 16:45:22 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-05-31 16:45:22 -0400 |
| commit | 709223a2f015966cd1c15b15dc4f7a56784ceac2 (patch) | |
| tree | 3bb0f426c870e49a09523c89d191c806871fc1c3 /mk | |
| parent | 55d2e06ec5afee20d56fc8a48d4c4d75e9afdbe0 (diff) | |
initial implementation of __scanf()
Diffstat (limited to 'mk')
| -rw-r--r-- | mk/__conv.d | 9 | ||||
| -rw-r--r-- | mk/__scanf.d | 1 | ||||
| -rw-r--r-- | mk/all.mk | 1 | ||||
| -rw-r--r-- | mk/deps.mk | 4 |
4 files changed, 15 insertions, 0 deletions
diff --git a/mk/__conv.d b/mk/__conv.d new file mode 100644 index 00000000..44f2589c --- /dev/null +++ b/mk/__conv.d @@ -0,0 +1,9 @@ +libc_C.0: libc.a(__conv.o) +libc.a(__conv.o): $(OBJDIR)/__conv.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/__conv.o: src/stdio/__conv.c +$(OBJDIR)/__conv.o: +$(OBJDIR)/__conv.o: + @mkdir -p $(@D) + $(CC) -c -o $@ $(CFLAGS) src/stdio/__conv.c diff --git a/mk/__scanf.d b/mk/__scanf.d index 84677c9c..930313ea 100644 --- a/mk/__scanf.d +++ b/mk/__scanf.d @@ -4,6 +4,7 @@ libc.a(__scanf.o): $(OBJDIR)/__scanf.o $(OBJDIR)/__scanf.o: src/stdio/__scanf.c $(OBJDIR)/__scanf.o: src/stdio/_stdio.h +$(OBJDIR)/__scanf.o: src/_safety.h $(OBJDIR)/__scanf.o: @mkdir -p $(@D) $(CC) -c -o $@ $(CFLAGS) src/stdio/__scanf.c @@ -286,6 +286,7 @@ include mk/setvbuf.d include mk/sscanf.d include mk/fclose.d include mk/fgets.d +include mk/__conv.d include mk/vsscanf_s.d include mk/__stderr.d include mk/fgetc.d @@ -1154,6 +1154,10 @@ all: mk/fgets.d mk/fgets.d: src/stdio/fgets.c sh mk/deps.sh src/stdio/fgets.c +all: mk/__conv.d +mk/__conv.d: src/stdio/__conv.c + sh mk/deps.sh src/stdio/__conv.c + all: mk/vsscanf_s.d mk/vsscanf_s.d: src/stdio/vsscanf_s.c sh mk/deps.sh src/stdio/vsscanf_s.c |
