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
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
INSTALLDIR:= /home/autobuild/tools/win32/lib
|
|
|
|
|
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)
|