From 9a92f577526bcb5c29ebc4ca2258ef5a9a93ab14 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 4 Oct 1989 10:56:16 +0000 Subject: [PATCH] Initial revision --- modules/src/string/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/src/string/Makefile diff --git a/modules/src/string/Makefile b/modules/src/string/Makefile new file mode 100644 index 000000000..5d66e62df --- /dev/null +++ b/modules/src/string/Makefile @@ -0,0 +1,36 @@ +EMHOME = ../../.. +MODULES = $(EMHOME)/modules +INSTALL = $(MODULES)/install +COMPARE = $(MODULES)/compare + +CFLAGS = -O + +SRC = bts2str.c btscat.c btscmp.c btscpy.c btszero.c long2str.c \ + str2bts.c str2long.c strcat.c strcmp.c strcpy.c strindex.c \ + strlen.c strncat.c strncmp.c strncpy.c strrindex.c strzero.c +OBJ = bts2str.o btscat.o btscmp.o btscpy.o btszero.o long2str.o \ + str2bts.o str2long.o strcat.o strcmp.o strcpy.o strindex.o \ + strlen.o strncat.o strncmp.o strncpy.o strrindex.o strzero.o + +all: libstring.a + +libstring.a: $(OBJ) Makefile + ar r libstring.a $(OBJ) + -sh -c 'ranlib libstring.a' + +install: all + $(INSTALL) lib/libstring.a + $(INSTALL) man/string.3 + +cmp: all + $(COMPARE) lib/libstring.a + $(COMPARE) man/string.3 + +pr: + @pr Makefile $(SRC) + +opr: + make pr | opr + +clean: + rm -f *.[oa] -- 2.34.1