kolibrios-fun/contrib/sdk/sources/sound/Makefile.tcc
turbocat 3f48750ec0 libsound: Added build for TCC
git-svn-id: svn://kolibrios.org@9203 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-09-26 17:34:51 +00:00

27 lines
427 B
C++

AR = ar
FASM = fasm
OBJCOPY = objcopy
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)
objcopy -O elf32-i386 --redefine-syms=symbols $@
clean:
rm -f $(target_objs) $(TARGET).a