Add cross compile options to Makefile

This commit is contained in:
Vadim Vetrov 2024-07-23 02:08:27 +03:00
parent 55c14668f6
commit 3b7489acd7
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5

View File

@ -43,17 +43,17 @@ prepare_dirs:
mkdir -p $(DEPSDIR) mkdir -p $(DEPSDIR)
$(LIBNFNETLINK): $(LIBNFNETLINK):
cd deps/libnfnetlink && ./autogen.sh && ./configure --prefix=$(DEPSDIR) cd deps/libnfnetlink && ./autogen.sh && ./configure --prefix=$(DEPSDIR) $(if $(CROSS_COMPILE_PLATFORM),--host=$(CROSS_COMPILE_PLATFORM),)
$(MAKE) -C deps/libnfnetlink $(MAKE) -C deps/libnfnetlink
$(MAKE) install -C deps/libnfnetlink $(MAKE) install -C deps/libnfnetlink
$(LIBMNL): $(LIBMNL):
cd deps/libmnl && ./autogen.sh && ./configure --prefix=$(DEPSDIR) cd deps/libmnl && ./autogen.sh && ./configure --prefix=$(DEPSDIR) $(if $(CROSS_COMPILE_PLATFORM),--host=$(CROSS_COMPILE_PLATFORM),)
$(MAKE) -C deps/libmnl $(MAKE) -C deps/libmnl
$(MAKE) install -C deps/libmnl $(MAKE) install -C deps/libmnl
$(LIBNETFILTER_QUEUE): $(LIBNFNETLINK) $(LIBMNL) $(LIBNETFILTER_QUEUE): $(LIBNFNETLINK) $(LIBMNL)
cd deps/libnetfilter_queue && ./autogen.sh && ./configure --prefix=$(DEPSDIR) cd deps/libnetfilter_queue && ./autogen.sh && ./configure --prefix=$(DEPSDIR) $(if $(CROSS_COMPILE_PLATFORM),--host=$(CROSS_COMPILE_PLATFORM),)
$(MAKE) -C deps/libnetfilter_queue $(MAKE) -C deps/libnetfilter_queue
$(MAKE) install -C deps/libnetfilter_queue $(MAKE) install -C deps/libnetfilter_queue