minix/lib/Makefile

216 lines
4 KiB
Makefile
Raw Normal View History

2005-04-21 16:53:53 +02:00
# Makefile for the libraries
# This makefile runs make in all the subdirectories of the src/lib tree.
# See ansi/Makefile for a further explanation.
MAKE = exec make -$(MAKEFLAGS)
ZLIB=zlib-1.2.2
2005-04-21 16:53:53 +02:00
usage:
@echo "Usage: make all" >&2 # Compile all library functions" >&2
@echo " make install # Backup /usr/lib/*.a first!" >&2
@echo " make clean # Delete .o and .a files" >&2
@false
all:
cd ansi && $(MAKE)
cd curses && $(MAKE)
cd dummy && $(MAKE)
cd editline && $(MAKE)
cd end && $(MAKE)
cd float && $(MAKE)
cd fphook && $(MAKE)
cd ip && $(MAKE)
cd libm2 && $(MAKE)
cd libp && $(MAKE)
cd liby && $(MAKE)
cd math && $(MAKE)
cd other && $(MAKE)
cd posix && $(MAKE)
test `arch` = i86 || { cd regex && $(MAKE); }
cd rts && $(MAKE)
cd stdio && $(MAKE)
cd socket && $(MAKE)
cd syscall && $(MAKE)
cd syslib && $(MAKE)
2005-07-19 18:01:37 +02:00
cd util && $(MAKE)
cd sysutil && $(MAKE)
2005-04-21 16:53:53 +02:00
cd timers && $(MAKE)
cd $(ZLIB) && $(MAKE)
2005-04-21 16:53:53 +02:00
cd `arch` && $(MAKE)
install: all
cd $(ZLIB) && make install
2005-04-21 16:53:53 +02:00
$(MAKE) install_`arch`
# Installation rules for PC Minix.
LIB= /usr/lib
install_i86: \
$(LIB)/ncrtso.o \
$(LIB)/nm2rtso.o \
$(LIB)/nprtso.o \
$(LIB)/libc.a \
$(LIB)/libd.a \
$(LIB)/libe.a \
$(LIB)/libfp.a \
$(LIB)/libm.a \
$(LIB)/libm2.a \
$(LIB)/libp.a \
$(LIB)/end.a \
$(LIB)/libsys.a \
$(LIB)/libtimers.a \
2005-07-19 18:01:37 +02:00
$(LIB)/util.a \
$(LIB)/sysutil.a \
2005-04-21 16:53:53 +02:00
$(LIB)/libcurses.a \
$(LIB)/libedit.a \
$(LIB)/liby.a \
$(LIB)/ncrtso.o: ncrtso.o
install -c -o bin $? $@
$(LIB)/nm2rtso.o: nm2rtso.o
install -c -o bin $? $@
$(LIB)/nprtso.o: nprtso.o
install -c -o bin $? $@
$(LIB)/libc.a: libc.a
install -c -o bin $? $@
$(LIB)/libd.a: libd.a
install -c -o bin $? $@
$(LIB)/libe.a: libe.a
install -c -o bin $? $@
$(LIB)/libfp.a: libfp.a
install -c -o bin $? $@
$(LIB)/libm.a: libm.a
install -c -o bin $? $@
$(LIB)/libm2.a: libm2.a
install -c -o bin $? $@
$(LIB)/libp.a: libp.a
install -c -o bin $? $@
$(LIB)/end.a: end.a
install -c -o bin $? $@
$(LIB)/libsys.a: libsys.a
install -c -o bin $? $@
$(LIB)/libtimers.a: libtimers.a
install -c -o bin $? $@
$(LIB)/libsysutil.a: libsysutil.a
2005-04-21 16:53:53 +02:00
install -c -o bin $? $@
2005-07-19 18:01:37 +02:00
$(LIB)/libutil.a: libutil.a
install -c -o bin $? $@
2005-04-21 16:53:53 +02:00
$(LIB)/libcurses.a: libcurses.a
install -c -o bin $? $@
$(LIB)/libedit.a: libedit.a
install -c -o bin $? $@
$(LIB)/liby.a: liby.a
install -c -o bin $? $@
# Installation rules for Minix-386.
LIB386= /usr/lib/i386
LIB86= /usr/lib/i86
install_i386: \
$(LIB386)/crtso.o \
$(LIB386)/m2rtso.o \
$(LIB386)/prtso.o \
$(LIB386)/libc.a \
$(LIB386)/libd.a \
$(LIB386)/libe.a \
$(LIB386)/libfp.a \
$(LIB386)/libm.a \
$(LIB386)/libm2.a \
$(LIB386)/libp.a \
$(LIB386)/libtimers.a \
$(LIB386)/end.a \
$(LIB386)/libsys.a \
$(LIB386)/libtimers.a \
2005-07-19 18:01:37 +02:00
$(LIB386)/libutil.a \
$(LIB386)/libsysutil.a \
2005-04-21 16:53:53 +02:00
$(LIB386)/libcurses.a \
$(LIB386)/libedit.a \
$(LIB386)/liby.a \
$(LIB386)/libsocket.a \
# $(LIB86)/libc.a \
# $(LIB86)/end.a \
$(LIB386)/crtso.o: crtso.o
install -c -o bin $? $@
$(LIB386)/m2rtso.o: m2rtso.o
install -c -o bin $? $@
$(LIB386)/prtso.o: prtso.o
install -c -o bin $? $@
$(LIB386)/libc.a: libc.a
install -c -o bin $? $@
$(LIB386)/libd.a: libd.a
install -c -o bin $? $@
$(LIB386)/libe.a: libe.a
install -c -o bin $? $@
$(LIB386)/libfp.a: libfp.a
install -c -o bin $? $@
$(LIB386)/libm.a: libm.a
install -c -o bin $? $@
$(LIB386)/libm2.a: libm2.a
install -c -o bin $? $@
$(LIB386)/libp.a: libp.a
install -c -o bin $? $@
$(LIB386)/end.a: end.a
install -c -o bin $? $@
$(LIB386)/libsys.a: libsys.a
install -c -o bin $? $@
$(LIB386)/libtimers.a: libtimers.a
install -c -o bin $? $@
$(LIB386)/libsysutil.a: libsysutil.a
2005-04-21 16:53:53 +02:00
install -c -o bin $? $@
2005-07-19 18:01:37 +02:00
$(LIB386)/libutil.a: libutil.a
install -c -o bin $? $@
2005-04-21 16:53:53 +02:00
$(LIB386)/libcurses.a: libcurses.a
install -c -o bin $? $@
$(LIB386)/libedit.a: libedit.a
install -c -o bin $? $@
$(LIB386)/liby.a: liby.a
install -c -o bin $? $@
$(LIB386)/libsocket.a: libsocket.a
install -c -o bin $? $@
#$(LIB86)/libc.a: libc86.a
# install -c -o bin $? $@
#
#$(LIB86)/end.a: end86.a
# install -c -o bin $? $@
clean:
find . -name '*.[oa]' -o -name '*.bak' | xargs rm