Browse Source

use the target's archiver to create the library

master
Lephenixnoir 1 month ago
parent
commit
e4cedf72a9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile View File

@@ -22,7 +22,7 @@ obj := $(src:%=build/%.o)
all: $(lib)

$(lib): $(obj)
ar rcs $@ $^
$(target)-ar rcs $@ $^

build/%.c.o: %.c | build/
$(target)-gcc -c $< -o $@ $(cflags)

Loading…
Cancel
Save