New installation mechanism

This commit is contained in:
ceriel
1991-08-26 16:50:25 +00:00
parent a9c094851c
commit c2caead0c8
29 changed files with 1106 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
Makefile
proto.make
doprnt.c
format.c
fprint.c

View File

@@ -142,5 +142,3 @@ Each illegal conversion specification is replaced by the string "<bad\ format>".
The maximum length of the string to be printed is 1024 characters.
.SH SEE ALSO
printf(3)
.SH AUTHOR
Erik Baalbergen <erikb@cs.vu.nl>

View File

@@ -0,0 +1,57 @@
# $Header$
#PARAMS do not remove this line!
SRC_DIR = $(SRC_HOME)/modules/src/print
MOD_DIR = $(TARGET_HOME)/modules
LIBPRINT = libprint.$(LIBSUF)
INCLUDES = -I$(SRC_DIR) -I$(MOD_LIB)/h
CFLAGS = $(COPTIONS) $(INCLUDES)
SRC = $(SRC_DIR)/doprnt.c $(SRC_DIR)/fprint.c $(SRC_DIR)/print.c \
$(SRC_DIR)/sprint.c $(SRC_DIR)/format.c
OBJ = doprnt.$(SUF) fprint.$(SUF) print.$(SUF) sprint.$(SUF) format.$(SUF)
all: $(LIBPRINT)
$(LIBPRINT): $(OBJ)
rm -f $(LIBPRINT)
$(AR) r $(LIBPRINT) $(OBJ)
$(RANLIB) $(LIBPRINT)
install: all lintlib
cp $(LIBPRINT) $(MOD_LIB)/lib/$(LIBPRINT)
$(RANLIB) $(MOD_LIB)/lib/$(LIBPRINT)
cp $(SRC_DIR)/print.3 $(MOD_LIB)/man/print.3
cmp: all
-cmp $(LIBPRINT) $(MOD_LIB)/lib/$(LIBPRINT)
-cmp $(SRC_DIR)/print.3 $(MOD_LIB)/man/print.3
pr:
@pr $(SRC_DIR)/proto.make $(SRC)
opr:
make pr | opr
clean:
rm -f *.$(SUF) $(LIBPRINT)
lintlib:
$(MK_LINT_LIB) print $(MOD_LIB)/lib $(INCLUDES) $(SRC)
doprnt.$(SUF): $(SRC_DIR)/param.h $(SRC_DIR)/doprnt.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/doprnt.c
fprint.$(SUF): $(SRC_DIR)/param.h $(SRC_DIR)/fprint.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/fprint.c
print.$(SUF): $(SRC_DIR)/param.h $(SRC_DIR)/print.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/print.c
sprint.$(SUF): $(SRC_DIR)/param.h $(SRC_DIR)/sprint.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/sprint.c
format.$(SUF): $(SRC_DIR)/format.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/format.c