mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 20:02:35 +03:00
22 lines
333 B
Makefile
22 lines
333 B
Makefile
|
|
||
|
AR = kos32-ar
|
||
|
FASM:= fasm.exe
|
||
|
|
||
|
TARGET:= libsound
|
||
|
|
||
|
dirs := ./src
|
||
|
|
||
|
target_srcs:= $(foreach dir,$(dirs),$(wildcard $(dir)/*.asm))
|
||
|
|
||
|
target_objs:= $(subst .asm,.o,$(target_srcs))
|
||
|
|
||
|
|
||
|
all: $(TARGET).a
|
||
|
|
||
|
%.o: %.asm
|
||
|
$(FASM) $< $@
|
||
|
|
||
|
$(TARGET).a: $(target_objs) Makefile
|
||
|
$(AR) cvrs $@ $(target_objs)
|
||
|
mv -f $@ ../../lib
|