kolibrios-fun/contrib/sdk/sources/sound/Makefile
turbocat a733001ec5 libsound: Fixed Makefile
git-svn-id: svn://kolibrios.org@9562 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-03 16:07:17 +00:00

24 lines
359 B
Makefile

AR = kos32-ar
FASM:= fasm
INSTALLDIR:= ../../lib
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 $@ $(INSTALLDIR)