summaryrefslogtreecommitdiff
path: root/src/l2_packet/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/l2_packet/Makefile')
-rw-r--r--src/l2_packet/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/l2_packet/Makefile b/src/l2_packet/Makefile
index adfd3dfd5b9b..47925b790c74 100644
--- a/src/l2_packet/Makefile
+++ b/src/l2_packet/Makefile
@@ -1,8 +1,16 @@
-all:
- @echo Nothing to be made.
+all: libl2_packet.a
clean:
- rm -f *~ *.o *.d *.gcno *.gcda *.gcov
+ rm -f *~ *.o *.d *.gcno *.gcda *.gcov libl2_packet.a
install:
@echo Nothing to be made.
+
+include ../lib.rules
+
+LIB_OBJS = l2_packet_linux.o
+
+libl2_packet.a: $(LIB_OBJS)
+ $(AR) crT $@ $?
+
+-include $(OBJS:%.o=%.d)