2015-07-23 12:10:52 +02:00
|
|
|
LIBRARY= libsync
|
|
|
|
|
2016-03-05 00:19:28 +01:00
|
|
|
FASM = fasm
|
2015-07-23 12:10:52 +02:00
|
|
|
AR = kos32-ar
|
|
|
|
ARFLAGS = crs
|
2016-09-22 18:14:35 +02:00
|
|
|
INSTALLDIR:= /home/autobuild/tools/win32/lib
|
2015-07-23 12:10:52 +02:00
|
|
|
|
|
|
|
SRCS = mutex.asm \
|
|
|
|
m_destroy.asm \
|
|
|
|
m_lock.asm \
|
|
|
|
m_try.asm \
|
|
|
|
m_unlock.asm \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OBJS = $(patsubst %.asm, %.o, $(SRCS))
|
|
|
|
|
|
|
|
# targets
|
|
|
|
|
|
|
|
all: libsync.a
|
|
|
|
|
|
|
|
libsync.a: $(OBJS) Makefile
|
|
|
|
$(AR) $(ARFLAGS) libsync.a $(OBJS)
|
2016-09-22 18:14:35 +02:00
|
|
|
mv -f libsync.a $(INSTALLDIR)
|
2015-07-23 12:10:52 +02:00
|
|
|
|
|
|
|
%.o : %.asm Makefile
|
|
|
|
$(FASM) $< $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|