kolibrios/contrib/sdk/sources/sound/Makefile
Sergey Semyonov (Serge) 8982c8cd10 sdk: update builds on linux hosts
git-svn-id: svn://kolibrios.org@6303 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-03-04 23:19:28 +00:00

22 lines
329 B
Makefile

AR = kos32-ar
FASM:= fasm
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