Browse Source

Add build rules for src/radius/libradius.a

Jouni Malinen 15 years ago
parent
commit
8a404b598d
2 changed files with 18 additions and 3 deletions
  1. 1 0
      src/radius/.gitignore
  2. 17 3
      src/radius/Makefile

+ 1 - 0
src/radius/.gitignore

@@ -0,0 +1 @@
+libradius.a

+ 17 - 3
src/radius/Makefile

@@ -1,9 +1,23 @@
-all:
-	@echo Nothing to be made.
+all: libradius.a
 
 clean:
 	for d in $(SUBDIRS); do make -C $$d clean; done
-	rm -f *~ *.o *.d
+	rm -f *~ *.o *.d libradius.a
 
 install:
 	@echo Nothing to be made.
+
+
+include ../lib.rules
+
+CFLAGS += -DCONFIG_IPV6
+
+LIB_OBJS= \
+	radius.o \
+	radius_client.o \
+	radius_server.o
+
+libradius.a: $(LIB_OBJS)
+	$(AR) crT $@ $?
+
+-include $(OBJS:%.o=%.d)