Patches by Jeff Bailey for posixifications.
This commit is contained in:
parent
23f881aa29
commit
3172b4d0ad
3 changed files with 15 additions and 9 deletions
|
@ -37,6 +37,13 @@ depend:
|
||||||
cd system && $(MAKE) -$(MAKEFLAGS) $@
|
cd system && $(MAKE) -$(MAKEFLAGS) $@
|
||||||
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c *.s > .depend
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c *.s > .depend
|
||||||
|
|
||||||
|
# How to build it
|
||||||
|
.s.o:
|
||||||
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
# Include generated dependencies.
|
# Include generated dependencies.
|
||||||
klib.o: klib386.s klib88.s
|
klib.o: klib386.s klib88.s
|
||||||
mpx.o: mpx386.s mpx88.s
|
mpx.o: mpx386.s mpx88.s
|
||||||
|
|
|
@ -63,12 +63,12 @@ if [ ! -z "$SUBDIRS" ]; then
|
||||||
echo "$RECURSIVE_TARGETS:: makefiles"
|
echo "$RECURSIVE_TARGETS:: makefiles"
|
||||||
for dir in $SUBDIRS
|
for dir in $SUBDIRS
|
||||||
{
|
{
|
||||||
if [ $TYPE = "both" -o $TYPE = "ack" ]; then
|
#if [ $TYPE = "both" -o $TYPE = "ack" ]; then
|
||||||
#echo " mkdir -p $ACKBASE/$OBJDIR/$dir"
|
#echo " mkdir -p $ACKBASE/$OBJDIR/$dir"
|
||||||
fi
|
#fi
|
||||||
if [ $TYPE = "both" -o $TYPE = "gnu" ]; then
|
#if [ $TYPE = "both" -o $TYPE = "gnu" ]; then
|
||||||
#echo " mkdir -p $GNUBASE/$OBJDIR/$dir"
|
#echo " mkdir -p $GNUBASE/$OBJDIR/$dir"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
echo " cd $dir && \$(MAKE) \$@"
|
echo " cd $dir && \$(MAKE) \$@"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ u=/usr
|
||||||
CC= exec cc
|
CC= exec cc
|
||||||
CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
|
CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
|
||||||
MDEC= /usr/mdec
|
MDEC= /usr/mdec
|
||||||
MAKE= exec make -$(MAKEFLAGS)
|
|
||||||
|
|
||||||
# Specify the programs that are part of the system image.
|
# Specify the programs that are part of the system image.
|
||||||
PROGRAMS= ../kernel/kernel \
|
PROGRAMS= ../kernel/kernel \
|
||||||
|
@ -42,7 +41,7 @@ usage:
|
||||||
|
|
||||||
# create a fresh configuration or system image
|
# create a fresh configuration or system image
|
||||||
fresh:
|
fresh:
|
||||||
cd ../lib && make clean
|
cd ../lib && $(MAKE) clean
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
$(MAKE) libraries services
|
$(MAKE) libraries services
|
||||||
|
|
||||||
|
@ -73,9 +72,9 @@ services: includes
|
||||||
cd ../drivers && $(MAKE) install
|
cd ../drivers && $(MAKE) install
|
||||||
|
|
||||||
libraries: includes
|
libraries: includes
|
||||||
cd ../lib && make clean
|
cd ../lib && $(MAKE) clean
|
||||||
cd ../lib && make all
|
cd ../lib && $(MAKE) all
|
||||||
cd ../lib && make install
|
cd ../lib && $(MAKE) install
|
||||||
|
|
||||||
|
|
||||||
# make bootable and place system images
|
# make bootable and place system images
|
||||||
|
|
Loading…
Reference in a new issue