makefile.org
资源名称:DOS系统的源代码.rar [点击查看]
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:1k
源码类别:
操作系统开发
开发平台:
Visual C++
- .SUFFIXES
- .PRECIOUS
- %if "$[u,$(CODEVIEW)]" == "ON"
- CODEVIEW = ON
- ASM_FLAGS = /Zi
- C_FLAGS = -Zi -Od -Oi -Gs
- %else
- ASM_FLAGS =
- C_FLAGS = -Osleazrgi -Gs
- %endif
- RELEASE_DIR = release
- TARGET = fastlynx.lib
- .INIT:
- @%setenv INCLUDE=$(INCLUDE)
- %if "$(CODEVIEW)" == "ON"
- @%echo
- @%echo *** CODEVIEW is ON ***
- @%echo
- %endif
- .asm.obj:
- *masm60binml /c /nologo /W2 /Cp $(ASM_FLAGS) /Dmodel=MEDIUM /Dtext=FX_TEXT $<
- .c.obj:
- *c600bincl -c -nologo -AS -NT FX_TEXT $(C_FLAGS) -Gr -W3 -Zl -Zp $<
- AOBJ1 = parallel.obj clonesub.obj listen.obj init.obj crctab.obj
- AOBJ2 = querybio.obj sendrecv.obj saveport.obj serial.obj loader.obj
- ASM_OBJ = $(AOBJ1) $(AOBJ2)
- C_OBJ = clone.obj
- $(TARGET): $(ASM_OBJ) $(C_OBJ)
- *lib /NOLOGO <@<
- $@
- %if !%file($(TARGET))
- y
- %endif
- {
- %if %file($(TARGET))
- -+$?&
- %else
- +$?&
- %endif
- }
- NUL
- <
- rel:
- copy *.h $(RELEASE_DIR)
- copy *.lib $(RELEASE_DIR)
- copy examplemakefile $(RELEASE_DIR)
- copy example*.asm $(RELEASE_DIR)
- copy example*.h $(RELEASE_DIR)
- copy example*.c $(RELEASE_DIR)
- copy example*.doc $(RELEASE_DIR)
- copy exampleexample.exe $(RELEASE_DIR)
- cd $(RELEASE_DIR)
- zip -a fxlib.zip *.*
- cd ..