summaryrefslogtreecommitdiffstats
path: root/net/ethernet/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethernet/Makefile')
-rw-r--r--net/ethernet/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/net/ethernet/Makefile b/net/ethernet/Makefile
new file mode 100644
index 000000000..a298cb88a
--- /dev/null
+++ b/net/ethernet/Makefile
@@ -0,0 +1,57 @@
+#
+# Makefile for the Linux TCP/IP (INET) layer.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+# Note 2! The CFLAGS definition is now in the main makefile...
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+.s.o:
+ $(AS) -o $*.o $<
+.c.s:
+ $(CC) $(CFLAGS) -S $<
+
+
+OBJS := eth.o
+
+ifdef CONFIG_IPX
+
+OBJ2 := pe2.o
+
+endif
+
+ifdef CONFIG_ATALK
+
+OBJ2 := pe2.o
+
+endif
+
+OBJS := $(OBJS) $(OBJ2)
+
+ifdef CONFIG_NET
+
+ethernet.o: $(OBJS)
+ $(LD) -r -o ethernet.o $(OBJS)
+
+else
+
+ethernet.o:
+ $(AR) rcs ethernet.o
+
+endif
+
+dep:
+ $(CPP) -M *.c > .depend
+
+tar:
+ tar -cvf /dev/f1 .
+
+#
+# include a dependency file if one exists
+#
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif