From 113d03741a66c006faa2be670b1aef7ceb4cdd20 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 3 Jul 2023 17:50:49 -0400 Subject: add inttyes.h,stdint.h to 05 stdlib, musl instructions in readme --- 05/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '05/Makefile') diff --git a/05/Makefile b/05/Makefile index 01194ff..d5bd3bd 100644 --- a/05/Makefile +++ b/05/Makefile @@ -27,12 +27,13 @@ $(TCCDIR)/lib/libtcc1.a: $(TCC0) $(TCCDIR)/lib/*.[cS] $(TCC0) -c $(TCCDIR)/lib/va_list.c -o $(TCCDIR)/lib/va_list.o $(TCC0) -c $(TCCDIR)/lib/libtcc1.c -o $(TCCDIR)/lib/libtcc1.o $(TCC0) -ar $(TCCDIR)/lib/libtcc1.a $(TCCDIR)/lib/*.o -install: $(TCCDIR)/lib/libtcc1.a $(TCCDIR)/include/*.h +musl: tcc-files + $(MAKE) -C musl-0.6.0 + $(MAKE) -C musl-0.6.0 install +tcc-files: $(TCCDIR)/lib/libtcc1.a $(TCCDIR)/include/*.h mkdir -p $(TCCINST)/include cp -r $(TCCDIR)/include/*.h $(TCCINST)/include/ cp -r $(TCCDIR)/lib/libtcc1.a $(TCCINST)/ - $(MAKE) -C musl-0.6.0 - $(MAKE) -C musl-0.6.0 install $(TCC)1: $(TCC0) $(TCCINST)/libtcc1.a cd $(TCCDIR) && ./tcc0 -nostdinc -nostdlib -B ../tcc-boostrap -L../musl-bootstrap/lib -lc -I ../musl-bootstrap/include tcc.c -o tcc1 tcc: $(TCC)1 -- cgit v1.2.3