#
# Makefile for ifenslave
# This file is in the Documentation/networking directory of the linux
# kernel and needs to be compiled. We create a link to the source file
# if it doesn't exist and proceed to compile it.
#
ifndef TOPDIR
TOPDIR  := $(shell cd ../../../../..; pwd)
endif
include $(TOPDIR)/development/rules/Rules.make.apps

TARGET=ifenslave
SRC=ifenslave.c

SRC_LOC=$(KERNELDIR)/Documentation/networking/ifenslave.c

all: $(TARGET)

$(TARGET): $(OBJ)
	$(CC) $^ -o $@

extrainstall:

clean:
	rm -f ifenslave ifenslave.c $(OBJ) $(DFILES)

ifenslave.c :
	[ -e ifenslave.c ] || ln -s $(SRC_LOC) ifenslave.c

include $(TOPDIR)/development/rules/Rules.make.apps-install

-include $(DFILES)
