criu/test/Makefile
Cyrill Gorcunov 8557e39bef test: Add sigaction test
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-12-03 01:48:57 +04:00

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