From cb03b33052028989d726b78e50cbd615be24f327 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Tue, 2 Oct 2012 23:10:55 +0200 Subject: [PATCH] Add a small makefile to build popen_noshell as a static lib --- .gitignore | 3 +++ popen-noshell/Makefile | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 popen-noshell/Makefile diff --git a/.gitignore b/.gitignore index 35c5875cc..13625b3ba 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ kpvcrlib/CMakeCache.txt kpvcrlib/CMakeFiles/ kpvcrlib/cmake_install.cmake kpvcrlib/Makefile + +popen-noshell/libpopen_noshell.a +popen-noshell/*.o diff --git a/popen-noshell/Makefile b/popen-noshell/Makefile new file mode 100644 index 000000000..8fc6d1ef5 --- /dev/null +++ b/popen-noshell/Makefile @@ -0,0 +1,15 @@ +SRCS=popen_noshell.c + +OBJS:=$(SRCS:%.c=%.o) + +%.o: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< + +all: libpopen_noshell.a + +libpopen_noshell.a: $(OBJS) + $(AR) rcs $@ $(OBJS) + +clean: + rm -rf *.o + rm -rf libpopen_noshell.a \ No newline at end of file