Updated Toy, added repl_tools and lib copying to the build

This commit is contained in:
2022-11-12 12:00:04 +00:00
parent 7c886b071f
commit 813b94faf5
7 changed files with 428 additions and 5 deletions

View File

@@ -25,12 +25,16 @@ else
exit 1
endif
library: $(OBJ)
library: libs $(OBJ)
$(CC) -DCORE_EXPORT $(CFLAGS) -shared -o $(OUT) $(LIBLINE) -L../$(LIBDIR) $(LIBS)
static: $(OBJ)
static: libs $(OBJ)
ar crs $(CORE_OUTDIR)/lib$(OUTNAME).a $(OBJ) -L../$(LIBDIR) $(LIBS)
libs:
cp ../Toy/repl/lib* .
cp ../Toy/repl/repl_tools.* .
$(OBJ): | $(ODIR)
$(ODIR):