📄 makefile
字号:
# Makefile for ramdisk imagePROGRAMS=at_wini bios_wini cdprobe dev2name floppy loadramdisk newroot \ pci sh service sysenv mfsEXTRA=drivers.conf passwdMAKEDEV=/usr/bin/MAKEDEVall: image.c image.sclean: rm -rf $(PROGRAMS) $(EXTRA) bintoc image image.c image.s t proto.genimage.c: bintoc image ./bintoc -o $@ imageimage.s: image.c sed < image.c > $@ 's/^/.data1 /;s/,$$//' || { rm -f $@; false; }# Note for cross compilation: this executable has to be compiled for the# host systembintoc: bintoc.c $(CC) -o $@ bintoc.cimage: proto.gen mtab rc $(PROGRAMS) $(EXTRA) mkfs image proto.gen || { rm -f image; false; }at_wini: ../../at_wini/at_wini install -s ../../$@/$@ $@../../at_wini/at_wini: cd ../../at_wini && makebios_wini: ../../bios_wini/bios_wini install -s ../../$@/$@ $@../../bios_wini/bios_wini: cd ../../bios_wini && makefloppy: ../../floppy/floppy install -s ../../$@/$@ $@../../floppy/floppy: cd ../../floppy && makepci: ../../pci/pci install -s ../../$@/$@ $@../../pci/pci: cd ../../pci && makecdprobe: ../../../commands/simple/cdprobe install -s ../../../commands/simple/$@ $@../../../commands/simple/cdprobe: cd ../../../commands/simple && make cdprobedev2name: ../../../commands/simple/dev2name install -s ../../../commands/simple/$@ $@../../../commands/simple/dev2name: cd ../../../commands/simple && make dev2nameloadramdisk: ../../../commands/simple/loadramdisk install -s ../../../commands/simple/$@ $@../../../commands/simple/loadramdisk: cd ../../../commands/simple && make loadramdisknewroot: ../../../commands/simple/newroot install -s ../../../commands/simple/$@ $@../../../commands/simple/newroot: cd ../../../commands/simple && make newrootsysenv: ../../../commands/simple/sysenv install -s ../../../commands/simple/$@ $@../../../commands/simple/sysenv: cd ../../../commands/simple && make sysenvsh: ../../../commands/ash/sh install -s ../../../commands/ash/$@ $@../../../commands/ash/sh: cd ../../../commands/ash && make shservice: ../../../servers/rs/service install -s ../../../servers/rs/$@ $@../../../servers/rs/service: cd ../../../servers/rs && make servicemfs: ../../../servers/mfs/mfs install -s ../../../servers/mfs/$@ $@../../../servers/mfs/mfs: cd ../../../servers/mfs && makedrivers.conf: ../../../etc/drivers.conf install -s ../../../etc/$@ $@passwd: ../../../etc/passwd install -s ../../../etc/$@ $@depend: mkdep "$(CC) -E $(CPPFLAGS)" *.c > .dependproto.gen: $(MAKEDEV) proto.sh proto sh -e proto.sh >proto.gen# Include generated dependencies.include .depend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -