summaryrefslogtreecommitdiffstats
path: root/src/usr/example/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/example/makefile')
-rw-r--r--src/usr/example/makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usr/example/makefile b/src/usr/example/makefile
new file mode 100644
index 000000000..608aacc87
--- /dev/null
+++ b/src/usr/example/makefile
@@ -0,0 +1,16 @@
+ROOTPATH = ../../..
+OBJDIR = ${ROOTPATH}/obj/modules/example
+IMGDIR = ${ROOTPATH}/img
+EXTRACOMMONFLAGS = -fPIC
+
+OBJS = example.o
+OBJECTS = $(addprefix ${OBJDIR}/, ${OBJS})
+LIBS = libexample.so
+LIBRARIES = $(addprefix ${IMGDIR}/, ${LIBS})
+
+all: ${OBJECTS} ${LIBRARIES}
+
+clean:
+ (rm -f ${OBJECTS} ${LIBRARIES} )
+
+include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud