Kaynağa Gözat

- added new example library that uses the new Makefile.libs
(it doesn't do anything usefull, is just an example)

Andrei Pelinescu-Onciul 18 yıl önce
ebeveyn
işleme
add0d98ef5
4 değiştirilmiş dosya ile 45 ekleme ve 0 silme
  1. 14 0
      lib/print/Makefile
  2. 11 0
      lib/print/README
  3. 13 0
      lib/print/print.c
  4. 7 0
      lib/print/print.h

+ 14 - 0
lib/print/Makefile

@@ -0,0 +1,14 @@
+#
+# example library makefile
+#
+
+include ../../Makefile.defs
+auto_gen=
+NAME:=print
+MAJOR_VER=1
+MINOR_VER=2
+BUGFIX_VER=1
+LIBS=
+
+include ../../Makefile.libs
+

+ 11 - 0
lib/print/README

@@ -0,0 +1,11 @@
+example print library
+--------------
+
+
+Description:
+------------
+
+This library is an example on how to implement a ser specific library
+(see the Makefile).
+See also modules/print_lib for a library usage example.
+

+ 13 - 0
lib/print/print.c

@@ -0,0 +1,13 @@
+/* 
+ * example library 
+ */
+
+
+
+#include <stdio.h>
+
+int stderr_println(char* text)
+{
+	fprintf(stderr, "%s\n", text);
+	return 0;
+}

+ 7 - 0
lib/print/print.h

@@ -0,0 +1,7 @@
+
+#ifndef _print_h
+#define _print_h
+
+int stderr_println(char* text);
+
+#endif