mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add a small makefile to build popen_noshell as a static lib
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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
15
popen-noshell/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user