mcexec: open syscall moves to arch_dep do_fork: don't use __NR_fork. use __NR_clone vfork: moves to arch_dep
27 lines
493 B
Makefile
27 lines
493 B
Makefile
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:
|