Skip to content

Commit

Permalink
Fix typo buid / build
Browse files Browse the repository at this point in the history
  • Loading branch information
levif committed Jun 8, 2018
1 parent 6b8a5bf commit e6fc1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lesson01/rpi-os.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $(BUILD_DIR)/%_s.o: $(SRC_DIR)/%.S
$(ARMGNU)-gcc $(ASMOPS) -MMD -c $< -o $@
```

Next two targets are responsible for compiling C and assembler files. If, for example, in the `src` directory we have `foo.c` and `foo.S` files, they will be compiled into `/buid/foo_c.o` and `build/foo_s.o` respectively. `$<` and `$@` are substituted at the runtime with the input and output filenames (`foo.c` and `foo_c.o`) Before compiling C files, we also create `build` directory in case it doesn't exist yet.
Next two targets are responsible for compiling C and assembler files. If, for example, in the `src` directory we have `foo.c` and `foo.S` files, they will be compiled into `build/foo_c.o` and `build/foo_s.o` respectively. `$<` and `$@` are substituted at the runtime with the input and output filenames (`foo.c` and `foo_c.o`) Before compiling C files, we also create `build` directory in case it doesn't exist yet.

```
C_FILES = $(wildcard src/*.c)
Expand Down

0 comments on commit e6fc1e9

Please sign in to comment.