Skip to content

Commit a0a4a47

Browse files
Updated README.md, added .gitignore and Makefile
1 parent cdd1c5d commit a0a4a47

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
SRC_DIR := macrolib/examples
2+
BUILD_DIR := build
3+
4+
ASM_SOURCES := $(wildcard $(SRC_DIR)/*.asm)
5+
6+
BINARIES := $(patsubst $(SRC_DIR)/%.asm, $(BUILD_DIR)/%, $(ASM_SOURCES))
7+
8+
all: $(BUILD_DIR) $(BINARIES)
9+
10+
$(BUILD_DIR):
11+
mkdir -p $(BUILD_DIR)
12+
13+
$(BUILD_DIR)/%: $(SRC_DIR)/%.asm | $(BUILD_DIR)
14+
fasm $< $@
15+
16+
clean:
17+
rm -rf $(BUILD_DIR)

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,16 @@ include 'macroslib.inc'
2323
## Usage
2424

2525
Below is a detailed list of available macros and their usage.</br>
26+
2627
For practical examples, see [examples folder](macroslib/examples).</br>
27-
Compiled binaries of these examples are available in the [releases](https://github.com/lina-torovoltas/FasmMacrosLib/releases) section.
28+
Compiled binaries of these examples are available in the [releases](https://github.com/lina-torovoltas/FasmMacrosLib/releases) section.</br>
29+
30+
Alternatively, you can compile them yourself by running:
31+
32+
```bash
33+
cd FasmMacroLib
34+
make
35+
```
2836

2937
### clr
3038
Clears the specified register (sets it to zero).

0 commit comments

Comments
 (0)