mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Tweaked tabs-vs-spaces
This commit is contained in:
@@ -15,17 +15,17 @@ Next, you'll want to run make the from within Toy's `source`, assuming the outpu
|
||||
|
||||
```make
|
||||
toy: $(OUTDIR)
|
||||
$(MAKE) -C Toy/source
|
||||
$(MAKE) -C Toy/source
|
||||
|
||||
$(OUTDIR):
|
||||
mkdir $(OUTDIR)
|
||||
mkdir $(OUTDIR)
|
||||
```
|
||||
|
||||
Finally, link against the outputted library, with the source directory as the location of the header files.
|
||||
|
||||
```make
|
||||
all: $(OBJ) toy
|
||||
$(CC) $(CFLAGS) -o $(OUT) $(OBJ) -L$(TOY_OUTDIR) -ltoy
|
||||
$(CC) $(CFLAGS) -o $(OUT) $(OBJ) -L$(TOY_OUTDIR) -ltoy
|
||||
```
|
||||
|
||||
These snippets of makefile are only an example - the repository has a more fully featured set of makefiles which can also produce a usable REPL program.
|
||||
|
||||
Reference in New Issue
Block a user