mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
35 lines
725 B
Makefile
35 lines
725 B
Makefile
SRCS += test-counter.c
|
|
SRCS += test-rnd-from-file.c
|
|
SRCS += test-shmem-async.c
|
|
SRCS += test-shmem-three-async.c
|
|
SRCS += test-pipe-async.c
|
|
SRCS += test-vdso.c
|
|
SRCS += test-sigaction.c
|
|
|
|
SRCS-TH += test-pthreads.c
|
|
OBJS-TH += $(patsubst %.c,%.o,$(SRCS-TH))
|
|
PROGS-TH:= $(patsubst %.c,%,$(SRCS-TH))
|
|
|
|
OBJS := $(patsubst %.c,%.o,$(SRCS))
|
|
PROGS := $(patsubst %.c,%,$(SRCS))
|
|
|
|
all: $(PROGS) $(PROGS-TH)
|
|
|
|
$(PROGS-TH): $(OBJS-TH)
|
|
$(E) " LINK " $@
|
|
$(Q) $(CC) $@.o -lpthread -o $@
|
|
|
|
$(PROGS): $(OBJS)
|
|
$(E) " LINK " $@
|
|
$(Q) $(CC) $@.o -o $@
|
|
|
|
%.o: %.c
|
|
$(E) " CC " $@
|
|
$(Q) $(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
$(Q) $(RM) -f ./*.o
|
|
$(Q) $(RM) -f ./$(PROGS)
|
|
$(Q) $(RM) -f ./$(PROGS-TH)
|
|
$(Q) $(RM) -f ./f1-file
|
|
.PHONY: clean
|