summaryrefslogtreecommitdiffstats
path: root/net/ethernet/Makefile
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
committer <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
commite7c2a72e2680827d6a733931273a93461c0d8d1b (patch)
treec9abeda78ef7504062bb2e816bcf3e3c9d680112 /net/ethernet/Makefile
parentec6044459060a8c9ce7f64405c465d141898548c (diff)
Import of Linux/MIPS 1.3.0
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