|
楼主 |
发表于 2011-3-11 16:34:35
|
显示全部楼层
编译时没有错误,Makefile如下:
include ./make_include
include ./MCONFIG
SUBDIRS=po \
lib \
getopt-1.1.2 \
disk-utils \
login-utils \
misc-utils \
mount \
fdisk \
hwclock \
sys-utils \
text-utils
.PHONEY: all install clean now
all: defines.h
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
defines.h make_include:
./configure
now:
touch defines.h
$(SUBDIRS): defines.h now
cd $@ && $(MAKE)
install:
@if [ "`whoami`" = "root" ]; then umask 022; fi
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
clean:
-rm -f *.o *~ omake conftest conftest.c core
@for subdir in $(SUBDIRS) partx; do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
distclean: make_include clean
cd po && make distclean
cd mount && make distclean
-rm -f defines.h make_include |
|