Skip to content

Commit

Permalink
Cross-compiling support.
Browse files Browse the repository at this point in the history
Applied alex-eri's patch openwrt/patches/310-Makefile_crosscompile.patch
to compile for OpenWrt. Pull #61.
  • Loading branch information
aabc committed Sep 24, 2016
1 parent c40bcb9 commit db665c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Expand Up @@ -64,10 +64,10 @@ sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my
fi

%_sh.o: libipt_NETFLOW.c
gcc -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c
$(CC) $(CFLAGS) -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c

%.so: %_sh.o
gcc -shared -o $@ $<
$(CC) -shared -o $@ $<

version.h: ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile
@./version.sh --define > version.h
Expand Down

0 comments on commit db665c0

Please sign in to comment.