⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 一个linux下的各种组播路由算法编程
💻
字号:
CC = g++
OBJS = queue.o event.o stats.o node2.o graphics.o windows.o sim.o
CCFLAGS = -g -D_strings_h
XFLAGS = -lXm -lXt -lX11

#Edit the following lines to include the path to the X11 and Motif header 
#files on your machine

#For sun machines:
INCDIR = /usr/include/X11/ 
#For dec machines:
#INCDIR = /usr/include/X11/
#For rs6000s:
#INCDIR = /usr/include/X11/

IFLAG = -I$(INCDIR)

#Edit this line to include the path to the X11 and Motif object files on your 
#machine

#For sun machines:
LINKDIR = /usr/lib/
For dec machines:
#LINKDIR = /usr/lib/
#For rs6000s:
#LINKDIR = /usr/lib/ 
LFLAG = -L$(LINKDIR)

mcrsim: $(OBJS) 
	$(CC) -o $@ $(OBJS) $(CCFLAGS) $(XFLAGS) $(LFLAG) -lm
router1:$(OBJS) 
	$(CC) -o $@ $(OBJS) $(CCFLAGS) $(XFLAGS) $(LFLAG) -lm
router2:$(OBJS) 
	$(CC) -o $@ $(OBJS) $(CCFLAGS) $(XFLAGS) $(LFLAG) -lm
queue.o: queue.c queue.h data.h
	$(CC) -c queue.c $(CCFLAGS)
event.o: event.c event.h data.h
	$(CC) -c event.c $(CCFLAGS)
stats.o: stats.c stats.h node2.h
	$(CC) -c stats.c $(CCFLAGS) $(IFLAG)
windows.o: windows.c windows.h
	$(CC) -c windows.c $(CCFLAGS) $(IFLAG)
graphics.o: graphics.c graphics.h node2.h data.h queue.h event.h stats.h
	$(CC) -c graphics.c $(CCFLAGS) $(IFLAG)
node2.o: node2.c node2.h data.h queue.h event.h graphics.h traf.c rout.c\
 routATM.c routCST.c routLD.c routKMB.c routBF.c routCAO.c routBSMA.c\
 routOPT.c source.c stats.h
	$(CC) -c node2.c $(CCFLAGS) $(IFLAG)
sim.o: sim.c sim.h node2.h data.h queue.h event.h stats.h windows.h graphics.h
	$(CC) -c sim.c $(CCFLAGS) $(IFLAG)

clean: 
	rm -f *.o

⌨️ 快捷键说明

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