cd system && $(MAKE) -$(MAKEFLAGS) $@
/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.
klib.o: klib386.s klib88.s
mpx.o: mpx386.s mpx88.s
echo "$RECURSIVE_TARGETS:: makefiles"
for dir in $SUBDIRS
{
- if [ $TYPE = "both" -o $TYPE = "ack" ]; then
+ #if [ $TYPE = "both" -o $TYPE = "ack" ]; then
#echo " mkdir -p $ACKBASE/$OBJDIR/$dir"
- fi
- if [ $TYPE = "both" -o $TYPE = "gnu" ]; then
+ #fi
+ #if [ $TYPE = "both" -o $TYPE = "gnu" ]; then
#echo " mkdir -p $GNUBASE/$OBJDIR/$dir"
- fi
+ #fi
echo " cd $dir && \$(MAKE) \$@"
}
CC= exec cc
CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
MDEC= /usr/mdec
-MAKE= exec make -$(MAKEFLAGS)
# Specify the programs that are part of the system image.
PROGRAMS= ../kernel/kernel \
# create a fresh configuration or system image
fresh:
- cd ../lib && make clean
+ cd ../lib && $(MAKE) clean
$(MAKE) clean
$(MAKE) libraries services
cd ../drivers && $(MAKE) install
libraries: includes
- cd ../lib && make clean
- cd ../lib && make all
- cd ../lib && make install
+ cd ../lib && $(MAKE) clean
+ cd ../lib && $(MAKE) all
+ cd ../lib && $(MAKE) install
# make bootable and place system images