?? bfs.mak
字號:
# ****************************************************************************
# * *
# * bfs.mak *
# * ======= *
# * *
# ****************************************************************************
# ****************************************************************************
# * *
# * Define the name of the makefile. *
# * *
# ****************************************************************************
MAKNAM = bfs.mak
# ****************************************************************************
# * *
# * Define the directories in which to search for library files. *
# * *
# ****************************************************************************
LIBDRS =
# ****************************************************************************
# * *
# * Define the directories in which to search for include files. *
# * *
# ****************************************************************************
INCDRS = -I$(ALGOWC_TOPDIR)/include
# ****************************************************************************
# * *
# * Define the library files. *
# * *
# ****************************************************************************
LIBFLS =
# ****************************************************************************
# * *
# * Define the source files. *
# * *
# ****************************************************************************
SRCFLS = ex-2.c\
$(ALGOWC_TOPDIR/source/bfs.c\
$(ALGOWC_TOPDIR/source/graph.c\
$(ALGOWC_TOPDIR/source/list.c\
$(ALGOWC_TOPDIR/source/queue.c\
$(ALGOWC_TOPDIR/source/set.c
# ****************************************************************************
# * *
# * Define the object files. *
# * *
# ****************************************************************************
OBJFLS = ex-2.o\
$(ALGOWC_TOPDIR)/source/bfs.o\
$(ALGOWC_TOPDIR)/source/graph.o\
$(ALGOWC_TOPDIR)/source/list.o\
$(ALGOWC_TOPDIR)/source/queue.o\
$(ALGOWC_TOPDIR)/source/set.o
# ****************************************************************************
# * *
# * Define the executable. *
# * *
# ****************************************************************************
EXE = ex-2.exe
# ****************************************************************************
# * *
# * Define the compile and link options. *
# * *
# ****************************************************************************
CC = c89
LL = c89
CFLAGS =
LFLAGS =
# ****************************************************************************
# * *
# * Define the rules. *
# * *
# ****************************************************************************
$(EXE): $(OBJFLS)
$(LL) $(LFLAGS) -o $@ $(OBJFLS) $(LIBDRS) $(LIBFLS)
.c.o:
$(CC) $(CFLAGS) -o $@ -c $(INCDRS) $<
all:
make -f $(MAKNAM) clean
make -f $(MAKNAM) depend
depend:
makedepend $(INCDRS) -f $(MAKNAM) $(SRCFLS)
make -f $(MAKNAM) $(EXE)
clean:
-rm $(EXE)
-rm $(OBJFLS)
# DO NOT DELETE THIS LINE -- make depend depends on it.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -