File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ build /
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change @@ -23,8 +23,16 @@ include 'macroslib.inc'
2323## Usage
2424
2525Below is a detailed list of available macros and their usage.</br >
26+
2627For 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
3038Clears the specified register (sets it to zero).
You can’t perform that action at this time.
0 commit comments