mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
instead of HOST (and allow it to be set from the env), use $(MAKE) instead of make to allow using the jobserver properly, and remove the dash from commands where we do care about the return code (or inhibit errors the usual way: rm -f instead of -rm) Conflicts: Makefile
16 lines
218 B
Makefile
16 lines
218 B
Makefile
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
|