2014-08-07 13:48:01 +02:00
|
|
|
|
|
|
|
AR = kos32-ar
|
2016-03-05 00:19:28 +01:00
|
|
|
FASM:= fasm
|
2014-08-07 13:48:01 +02:00
|
|
|
|
2022-01-03 17:07:17 +01:00
|
|
|
INSTALLDIR:= ../../lib
|
2016-11-04 07:36:45 +01:00
|
|
|
|
2014-08-07 13:48:01 +02:00
|
|
|
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)
|
2016-11-04 07:36:45 +01:00
|
|
|
mv -f $@ $(INSTALLDIR)
|