New installation mechanism
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
doprnt.c
|
||||
format.c
|
||||
fprint.c
|
||||
|
||||
@@ -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>
|
||||
|
||||
57
modules/src/print/proto.make
Normal file
57
modules/src/print/proto.make
Normal 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
|
||||
Reference in New Issue
Block a user