2017-05-15 13:21:56 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
RM = rm
|
|
|
|
CFLAGS = -I. -Wall -g -O0 -I../src
|
|
|
|
LFLAGS_LIB = ../src/libmachinarium.a -pthread -lssl -lcrypto
|
|
|
|
LFLAGS = $(LFLAGS_LIB)
|
|
|
|
OBJECTS = machinarium_test.o \
|
2017-05-15 13:41:31 +00:00
|
|
|
test_init.o \
|
2017-05-17 15:12:42 +00:00
|
|
|
test_create0.o \
|
|
|
|
test_create1.o \
|
2017-05-15 14:38:39 +00:00
|
|
|
test_context_switch.o \
|
2017-05-15 13:41:31 +00:00
|
|
|
test_sleep.o \
|
|
|
|
test_sleep_yield.o \
|
|
|
|
test_sleep_cancel0.o \
|
2017-05-18 10:20:40 +00:00
|
|
|
test_join.o \
|
2017-05-15 13:55:10 +00:00
|
|
|
test_condition0.o \
|
2017-05-15 14:10:58 +00:00
|
|
|
test_condition1.o \
|
2017-05-19 12:27:50 +00:00
|
|
|
test_channel_create.o \
|
|
|
|
test_channel_rw0.o \
|
|
|
|
test_channel_rw1.o \
|
|
|
|
test_channel_rw2.o \
|
2017-05-22 12:30:13 +00:00
|
|
|
test_channel_rw3.o \
|
|
|
|
test_channel_rw4.o \
|
2017-05-19 12:27:50 +00:00
|
|
|
test_channel_timeout.o \
|
|
|
|
test_channel_cancel.o \
|
2017-05-22 15:23:57 +00:00
|
|
|
test_queue_create.o \
|
|
|
|
test_queue_rw0.o \
|
|
|
|
test_queue_rw1.o \
|
|
|
|
test_queue_rw2.o \
|
|
|
|
test_queue_producer_consumer0.o \
|
|
|
|
test_queue_producer_consumer1.o \
|
2017-05-15 14:10:58 +00:00
|
|
|
test_io_new.o \
|
2017-05-15 14:21:34 +00:00
|
|
|
test_connect.o \
|
|
|
|
test_connect_timeout.o \
|
|
|
|
test_connect_cancel0.o \
|
2017-05-15 14:32:22 +00:00
|
|
|
test_connect_cancel1.o \
|
|
|
|
test_accept_timeout.o \
|
2017-05-15 14:53:55 +00:00
|
|
|
test_accept_cancel.o \
|
2017-05-16 09:54:03 +00:00
|
|
|
test_getaddrinfo0.o \
|
|
|
|
test_getaddrinfo1.o \
|
2017-05-15 14:53:55 +00:00
|
|
|
test_client_server.o \
|
2017-05-16 09:48:16 +00:00
|
|
|
test_client_server_readahead.o \
|
|
|
|
test_read_timeout.o \
|
|
|
|
test_read_cancel.o
|
2017-05-15 13:21:56 +00:00
|
|
|
all: clean $(OBJECTS) machinarium_test
|
|
|
|
machinarium_test:
|
|
|
|
$(CC) $(OBJECTS) $(LFLAGS) -o machinarium_test
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
|
|
$(RM) -f $(OBJECTS) machinarium_test
|