rules.mk

来自「一个Megaco实现源代码」· MK 代码 · 共 77 行

MK
77
字号
#-*-makefile-*-   ; force emacs to enter makefile-mode.SUFFIXES: .erl .jam .beam .yrl .hrl .sgml .html .so .c .flex .flex.src# ----------------------------------------------------#	Erlang language section# ----------------------------------------------------EMULATOR = beamERLC_WFLAGS = -WERLC = erlc $(ERLC_WFLAGS) $(ERLC_FLAGS)ifndef EBINEBIN = ../ebinendififndef ESRCESRC = .endif$(EBIN)/%.beam: $(ESRC)/%.erl	@printf "\n\t"	$(ERLC) -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<.erl.beam:	@printf "\n\t"	$(ERLC) -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(dir $@) $<## When .erl files are automatically created GNU make removes them if# they were the result of a chain of implicit rules. To prevent this# we say that all .erl files are "precious".#.PRECIOUS: %.erl## Uncomment these lines and add .idl to suffixes above to have erlc ## eat IDL files##.idl.erl:##      $(ERLC) $(IDL_FLAGS) $<.yrl.erl:	$(ERLC) $(YRL_FLAGS) $<.xrl.erl:	$(ERLC) $(XRL_FLAGS) $<##  generating app files$(EBIN)/%.app: $(ESRC)/%.app.src $(VSN_FILE)	@printf "\n\t"	sed -e 's;%VSN%;$(VSN);' $< > $@$(EBIN)/%.appup: $(ESRC)/%.appup.src $(VSN_FILE)	@printf "\n\t"	sed -e 's;%VSN%;$(VSN);' $< > $@# ----------------------------------------------------#	C language section# ----------------------------------------------------.c.o:	@printf "\n\t$@ <- $<\n\t"	$(CC) $(CFLAGS) $(IFLAGS) -c $<# ----------------------------------------------------#       Command macros# ----------------------------------------------------INSTALL = /usr/ucb/install -cINSTALL_DIR = /usr/ucb/install -c -dINSTALL_PROGRAM = ${INSTALL}INSTALL_DATA = ${INSTALL} -m 644

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?