transport: sort targets before sources

This commit is contained in:
Pierre Pronchery 2025-03-13 10:46:05 +01:00
parent 45d6dc6774
commit 41e364ecef

View File

@ -7,6 +7,7 @@ ldflags_force=`pkg-config --libs libSystem` -L$(OBJDIR).. -lApp
ldflags=-Wl,-z,relro -Wl,-z,now ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile,common.h,common.c dist=Makefile,common.h,common.c
#targets
[self] [self]
type=plugin type=plugin
sources=self.c sources=self.c
@ -19,27 +20,18 @@ sources=tcp.c
ldflags=-lsocket ldflags=-lsocket
install=$(LIBDIR)/App/transport install=$(LIBDIR)/App/transport
[tcp.c]
depends=common.h,common.c
[tcp4] [tcp4]
type=plugin type=plugin
sources=tcp4.c sources=tcp4.c
ldflags=-lsocket ldflags=-lsocket
install=$(LIBDIR)/App/transport install=$(LIBDIR)/App/transport
[tcp4.c]
depends=tcp.c,common.h,common.c
[tcp6] [tcp6]
type=plugin type=plugin
sources=tcp6.c sources=tcp6.c
ldflags=-lsocket ldflags=-lsocket
install=$(LIBDIR)/App/transport install=$(LIBDIR)/App/transport
[tcp6.c]
depends=tcp.c,common.h,common.c
[template] [template]
type=plugin type=plugin
sources=template.c sources=template.c
@ -50,23 +42,33 @@ sources=udp.c
ldflags=-lsocket ldflags=-lsocket
install=$(LIBDIR)/App/transport install=$(LIBDIR)/App/transport
[udp.c]
depends=common.h,common.c
[udp4] [udp4]
type=plugin type=plugin
sources=udp4.c sources=udp4.c
ldflags=-lsocket ldflags=-lsocket
install=$(LIBDIR)/App/transport install=$(LIBDIR)/App/transport
[udp4.c]
depends=udp.c,common.h,common.c
[udp6] [udp6]
type=plugin type=plugin
sources=udp6.c sources=udp6.c
ldflags=-lsocket ldflags=-lsocket
install=$(LIBDIR)/App/transport install=$(LIBDIR)/App/transport
#sources
[tcp.c]
depends=common.h,common.c
[tcp4.c]
depends=tcp.c,common.h,common.c
[tcp6.c]
depends=tcp.c,common.h,common.c
[udp.c]
depends=common.h,common.c
[udp4.c]
depends=udp.c,common.h,common.c
[udp6.c] [udp6.c]
depends=udp.c,common.h,common.c depends=udp.c,common.h,common.c