📄 makefile
字号:
# Makefile for the Linux sound card driver## Note 2! The CFLAGS definitions are now inherited from the# parent makes. (hopefully)##LK = Readme Readme.aedsp16 Readme.cards Readme.linux Readme.modules \ Readme.v30 audio.c coproc.h dev_table.c hex2hex.h midi_ctrl.h \ midi_synth.h os.h patmgr.c sequencer.c sound_config.h \ sound_switch.c sound_timer.c soundvers.h sys_timer.c \ tuning.h ulaw.hSUBLK= lowlevel/Config.tmpl lowlevel/Makefile \ lowlevel/README lowlevel/aci.c lowlevel/init.c.PHONY: dummySUB_DIRS = lowlevelVERSION = `head -1 .version`TARGET_OS = linuxUSRINCDIR = /usr/includeMODULEDIR = /lib/modules/miscFIXEDOBJS = soundcard.o dev_table.o sound_switch.oifndef NO_LOWLEVEL FIXEDOBJS := $(FIXEDOBJS) lowlevel/lowlevel.oendififeq (.defines,$(wildcard .defines))include .definesinclude .objectselseOBJS = `cat .object_files`endififndef TOPDIRTOPDIR=/usr/src/linuxendififndef HOSTCCbuild: @echo Compiling modularized sound driver @make sound.o @echo Sound module compiled.install: sound.o cp sound.o $(MODULEDIR)endif.c.o: $(CC) $(CFLAGS) -c $<ifeq ($(CONFIG_SOUND),y)all: local.h sound.aOBJS += $(FIXEDOBJS)elseall:endififndef HOSTCC## Running outside the kernel build.#CC = gccHOSTCC = gccCFLAGS = -O2 -D__KERNEL__ -DMODULE -I/usr/src/linux/include -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -m486USE_DEPEND=yelseinclude $(TOPDIR)/Rules.makeendifsound.a: $(OBJS) -rm -f sound.a $(AR) rcs sound.a $(OBJS) syncclean: rm -f core core.* *.o *.a tmp_make *~ x y z *% rm -f configure sound_stub.c objects/*.o cd lowlevel;make cleanindent: for n in *.c;do echo indent $$n;indent $$n;donelocal.h: $(MAKE) clean $(MAKE) setup-$(TARGET_OS) $(MAKE) oldconfig $(MAKE) dep @echo @echo @echo @echo NOTE! Object file dependencies may not be up to date. Run @echo make again if kernel/driver doesn''t link properly. Restarting @echo it now may save some time. @echo @echoconfig: configure @$(MAKE) setup-$(TARGET_OS) @./configure > local.h @echo \#define SOUND_CONFIG_DATE \"`date`\" >> local.h @echo \#define SOUND_CONFIG_BY \"`whoami`\" >> local.h# @echo \#define SOUND_CONFIG_HOST \"`hostname`\" >> local.h 2>/dev/null# @echo \#define SOUND_CONFIG_DOMAIN \"`hostname -d`\" >> local.h 2>/dev/null @echo \#define SOUND_UNAME_A \"`uname -a`\" >> local.holdconfig: setup-$(TARGET_OS) configure @./configure -o > local.h @echo \#define SOUND_CONFIG_DATE \"`date`\" >> local.h @echo \#define SOUND_CONFIG_BY \"`whoami`\" >> local.h# @echo \#define SOUND_CONFIG_HOST \"`hostname`\" >> local.h 2>/dev/null# @echo \#define SOUND_CONFIG_DOMAIN \"`hostname -d`\" >> local.h 2>/dev/null @echo \#define SOUND_UNAME_A \"`uname -a`\" >> local.hkernelconfig: setup-$(TARGET_OS) rm -f configure $(HOSTCC) -o configure configure.c ./configure fixedlocal > local.h ./configure fixeddefines > .defines @echo \#define SOUND_CONFIG_DATE \"`date`\" >> local.h @echo \#define SOUND_CONFIG_BY \"`whoami`\" >> local.h# @echo \#define SOUND_CONFIG_HOST \"`hostname`\" >> local.h 2>/dev/null# @echo \#define SOUND_CONFIG_DOMAIN \"`hostname -d`\" >> local.h 2>/dev/null @echo \#define SOUND_UNAME_A \"`uname -a`\" >> local.hmkscript: setup-$(TARGET_OS) rm -f configure $(HOSTCC) -o configure configure.c ./configure script > Config.in cat lowlevel/Config.tmpl >> Config.in ./configure fixedlocal > local.h ./configure fixeddefines > .definesclrconf: rm -f local.h .depend synth-ld.h trix_boot.h smw-midi0001.h maui_boot.h .definesconfigure: configure.c $(HOSTCC) -o configure configure.c @cat .blurbfastdep: links $(CPP) -M *.c > .dependsetup-linux: links @echo Compiling Sound Driver v $(VERSION) for Linuxsound.o: local.h $(FIXEDOBJS) sound.a -rm -f sound.o $(LD) -r -o sound.o $(FIXEDOBJS) sound.amodules: local.h sound.o ln -fs `pwd`/sound.o $(TOPDIR)/modules/sound.olowlevel/lowlevel.o: dummy cd lowlevel;make.PHONY: linkslinks: -@[ ! -e lowlevel ] && mkdir lowlevel; \ for f in $(LK); do \ if [ ! -e $$f ]; then \ echo "ln -s ../../../../drivers/sound/$$f $$f";\ ln -s ../../../../drivers/sound/$$f $$f; \ fi; \ done; \ for f in $(SUBLK); do \ if [ ! -e $$f ]; then \ echo "ln -s ../../../../../drivers/sound/$$f $$f";\ ln -s ../../../../../drivers/sound/$$f $$f; \ fi; \ donemrproper: -@for f in $(LK) $(SUBLK); do \ if [ -L $$f ]; then \ echo $(RM) $$f; \ $(RM) $$f; \ elif [ -f $$f ]; then \ echo not removing $$f; \ fi; \ doneifdef USE_DEPEND## include a dependency file if one exists#ifeq (.depend,$(wildcard .depend))include .dependendifendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -