1
-
2
1
PROJECTDIR =..
3
2
SUBDIR =test
4
3
@@ -9,11 +8,20 @@ LDFLAGS_SHARED := $(LDFLAGS) -lmidikit -lmidikit-driver
9
8
LDFLAGS_STATIC := $(LDFLAGS ) $(LIBDIR ) /libmidikit$(LIB_SUFFIX_STATIC ) $(LIBDIR ) /libmidikit-driver$(LIB_SUFFIX_STATIC )
10
9
LDFLAGS := $(LDFLAGS_$(COMPILE_MODE ) )
11
10
11
+ ifeq ($(USE_IPV6 ) ,1)
12
+ OBJS =$(OBJDIR ) /midi.o $(OBJDIR ) /util.o $(OBJDIR ) /list.o $(OBJDIR ) /port.o \
13
+ $(OBJDIR ) /clock.o $(OBJDIR ) /message_format.o $(OBJDIR ) /message.o \
14
+ $(OBJDIR ) /device.o $(OBJDIR ) /driver.o $(OBJDIR ) /message_queue.o \
15
+ $(OBJDIR ) /integration.o $(OBJDIR ) /runloop.o \
16
+ $(OBJDIR ) /driver_rtp.o $(OBJDIR ) /driver_applemidi.o \
17
+ $(OBJDIR ) /driver_rtpv6.o $(OBJDIR ) /driver_applemidiv6.o
18
+ else
12
19
OBJS =$(OBJDIR ) /midi.o $(OBJDIR ) /util.o $(OBJDIR ) /list.o $(OBJDIR ) /port.o \
13
20
$(OBJDIR ) /clock.o $(OBJDIR ) /message_format.o $(OBJDIR ) /message.o \
14
21
$(OBJDIR ) /device.o $(OBJDIR ) /driver.o $(OBJDIR ) /message_queue.o \
15
22
$(OBJDIR ) /integration.o $(OBJDIR ) /runloop.o \
16
23
$(OBJDIR ) /driver_rtp.o $(OBJDIR ) /driver_applemidi.o
24
+ endif
17
25
BIN =test_main
18
26
19
27
MAIN_C =main.c
@@ -52,9 +60,16 @@ $(OBJDIR)/integration.o: integration.c test.h
52
60
$(OBJDIR ) /runloop.o : runloop.c test.h
53
61
$(OBJDIR ) /driver_rtp.o : driver_rtp.c test.h
54
62
$(OBJDIR ) /driver_applemidi.o : driver_applemidi.c test.h
63
+ $(OBJDIR ) /driver_rtpv6.o : driver_rtpv6.c test.h
64
+ $(OBJDIR ) /driver_applemidiv6.o : driver_applemidiv6.c test.h
55
65
56
66
tests.passed : $(BINDIR ) /$(BIN ) $(LIBDIR ) /libmidikit$(LIB_SUFFIX ) $(LIBDIR ) /libmidikit-driver$(LIB_SUFFIX )
57
67
LD_LIBRARY_PATH=$(LIBDIR ) $(BINDIR ) /$(BIN ) && touch $@
58
68
69
+ ifeq ($(USE_IPV6 ) ,1)
70
+ $(MAIN_C ) : midi.c util.c list.c port.c clock.c message_format.c message.c device.c driver.c integration.c runloop.c driver_rtp.c driver_applemidi.c driver_rtp
71
+ ./generate_main.sh -o $(MAIN_C) $^
72
+ else
59
73
$(MAIN_C ) : midi.c util.c list.c port.c clock.c message_format.c message.c device.c driver.c integration.c runloop.c driver_rtp.c driver_applemidi.c
60
74
./generate_main.sh -o $(MAIN_C ) $^
75
+ endif
0 commit comments