Skip to content

Commit

Permalink
linux/build: move configure script to root dir
Browse files Browse the repository at this point in the history
This should make the netmap package a bit easier
to build, by virtue of following common practice.
  • Loading branch information
giuseppelettieri committed Oct 24, 2016
1 parent 98948aa commit eb2e562
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions LINUX/netmap.mak.in
Expand Up @@ -95,6 +95,7 @@ APPS_LD=@APPS_LD@
PREFIX=@PREFIX@
DESTDIR?=@DESTDIR@

.PHONY: apps
apps:
$(MAKE) -C build-apps SRCDIR=$(SRCDIR)/.. CC="$(APPS_CC)" LD="$(APPS_LD)"

Expand Down
13 changes: 13 additions & 0 deletions configure
@@ -0,0 +1,13 @@
#!/bin/sh

os=$(uname -s)

case $os in
Linux)
LINUX/configure "$@";;
FreeBSD)
FreeBSD/configure "$@";;
*)
echo "Sorry, $os is not supported"
exit 1;;
esac

0 comments on commit eb2e562

Please sign in to comment.