mirror of https://github.com/koreader/koreader
Add a small makefile to build popen_noshell as a static lib
parent
ee7122d6c4
commit
cb03b33052
@ -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
|
Loading…
Reference in New Issue