[pok-devel] [47] libpok target extendend to build libpart, a library containing all object files

[ Thread Index | Date Index | More lists.tuxfamily.org/pok-devel Archives ]


Revision: 47
Author:   phipse
Date:     2013-08-02 13:57:52 +0200 (Fri, 02 Aug 2013)
Log Message:
-----------
libpok target extendend to build libpart, a library containing all object files
of a partition.

Modified Paths:
--------------
    trunk/misc/mk/rules-partition.mk

Modified: trunk/misc/mk/rules-partition.mk
===================================================================
--- trunk/misc/mk/rules-partition.mk	2013-05-25 17:22:30 UTC (rev 46)
+++ trunk/misc/mk/rules-partition.mk	2013-08-02 11:57:52 UTC (rev 47)
@@ -12,9 +12,15 @@
 COPTS += -include $(DEPLOYMENT_HEADER)
 endif
 
-libpok: 
+# This target produces libpok and a new library consisting of the contents of libpok and the partition's object files.
+libpok: $(OBJS) 
 	$(CD) $(POK_PATH)/libpok && $(MAKE) distclean all
 	$(CP) $(POK_PATH)/libpok/libpok.a `pwd`/
+	$(ECHO) $(ECHO_FLAGS) $(ECHO_FLAGS_ONELINE) "[AR] libpart.a "
+	/bin/ar -x libpok.a
+	/bin/ar -csr libpart.a $(OBJS) *.lo
+	if test $$? -eq 0; then $(ECHO) $(ECHO_FLAGS) $(ECHO_GREEN) " OK "; else $(ECHO) $(ECHO_FLAGS) $(ECHO_RED) " KO"; fi
+	rm *.lo
 
 $(TARGET): $(OBJS)
 	$(ECHO) $(ECHO_FLAGS) $(ECHO_FLAGS_ONELINE) "[Assemble partition $@ "


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/