CC=@CC@
AR=ar
BINDIR=@BINDIR@
KDIR ?= @KDIR@
CFLAGS=-Wall -O -I.
VPATH=@abs_srcdir@
TARGET=../../libmcexec.a
LIBS=@LIBS@

all: $(TARGET)

../../libmcexec.a: archdep.o arch_syscall.o
	$(AR) cr ../../libmcexec.a archdep.o arch_syscall.o

archdep.o: archdep.S
	$(CC) -c -I${KDIR} $(CFLAGS) $(EXTRA_CFLAGS) -fPIE -pie -pthread $<

arch_syscall.o: arch_syscall.c
	$(CC) -c -I${KDIR} $(CFLAGS) $(EXTRA_CFLAGS) -fPIE -pie -pthread $<

clean:
	$(RM) $(TARGET) *.o

.PHONY: all clean install

install:
