makefile.mak

来自「基于DOS系统下的多任务类库。Class DOS Thread provides」· MAK 代码 · 共 58 行

MAK
58
字号
#---------------------------------------------------------------------------
#
#       MAKEFILE.MAK: makefile for DOS multitasking library.
#       Copyright (c) J.English 1993.
#       Author's address: je@unix.brighton.ac.uk
#
#       Permission is granted to use copy and distribute the
#       information contained in this file provided that this
#       copyright notice is retained intact and that any software
#       or other document incorporating this file or parts thereof
#       makes the source code for the library of which this file
#       is a part freely available.
#
#---------------------------------------------------------------------------

.AUTODEPEND
.SILENT

#----- Symbol definitions -----

DIR   = d:\borlandc                 # Borland C++ directory -- change to suit
MODEL = s                           # Memory model (s, m, l, c, h or t)
CC    = bcc -m$(MODEL) -I$(INC)\include -L$(LIB)\lib

#----- Default compilation rule -----

.cpp.obj:
    $(CC) -c $.

#----- Compilation rules -----

all: example1.exe example2.exe example3.exe example4.exe

example1.exe: example1.obj threads.obj
    $(CC) example1.obj threads.obj

example2.exe: example2.obj threads.obj
    $(CC) example2.obj threads.obj

example3.exe: example3.obj threads.obj
    $(CC) example3.obj threads.obj

example4.exe: example4.obj threads.obj
    $(CC) example4.obj threads.obj

example1.obj: example1.cpp
example2.obj: example2.cpp
example3.obj: example3.cpp
example4.obj: example4.cpp

#----- Other targets -----

clean:                              # clean up directory
    del *.obj

print:                              # print sources
    print *.doc *.mak *.h *.cpp

⌨️ 快捷键说明

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