Add a small makefile to build popen_noshell as a static lib

This commit is contained in:
NiLuJe
2012-10-02 23:10:55 +02:00
committed by Qingping Hou
parent ee7122d6c4
commit cb03b33052
2 changed files with 18 additions and 0 deletions

3
.gitignore vendored
View File

@@ -25,3 +25,6 @@ kpvcrlib/CMakeCache.txt
kpvcrlib/CMakeFiles/
kpvcrlib/cmake_install.cmake
kpvcrlib/Makefile
popen-noshell/libpopen_noshell.a
popen-noshell/*.o

15
popen-noshell/Makefile Normal file
View File

@@ -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