summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzy <[email protected]>2023-09-14 08:15:37 +0000
committerzy <[email protected]>2023-09-14 08:15:37 +0000
commitb05be716d27c32e384b6d463c22f94386838db1d (patch)
tree8f75573a0dc0a30946986194f72a9501077f8288
parent81ede9bf9cbb7f806db6d5f6dfd04cc14c76671c (diff)
timeout: 添加静态编译
-rw-r--r--timeout/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/timeout/Makefile b/timeout/Makefile
index b03cad0..5586ef3 100644
--- a/timeout/Makefile
+++ b/timeout/Makefile
@@ -58,6 +58,9 @@ timeout.o test-timeout.o:
test-timeout: timeout.o test-timeout.o
@$(SHRC); echo_cmd $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -o $@ timeout.o test-timeout.o
+static: timeout.o
+ @$(SHRC); echo_cmd ar rcs $(top_srcdir)/libtimeout.a $(top_srcdir)/timeout.o
+
so: timeout.c
@$(SHRC); echo_cmd $(CC) $(ALL_CFLAGS) -shared -o $(top_srcdir)/timeout.so $(top_srcdir)/timeout.c