?? makefile~
字號:
# To use this makefile for your own program, change# the following lines to match your setup# name of executable fileOUTPUT = ptest# name of your source file without the .cMAINFILE = packet_test10-2# path from here to the layers directoryLAYERSDIR = ../layers/# path from here to the debug directoryDEBUGDIR = ../debug/# path to where you want the object files storedWORKDIR = work/CFLAGS = -g -WallCC = arm-linux-gcc -lpthreadLINKDIR = $(LAYERSDIR)link/PHYSDIR = $(LAYERSDIR)physical/TRANSPORTDIR = $(LAYERSDIR)transport/NETWORKDIR = $(LAYERSDIR)network/OBJS = $(WORKDIR)$(MAINFILE).o $(WORKDIR)serial_connect.o $(WORKDIR)frame.o $(WORKDIR)packet.o $(WORKDIR)debug.oSRCS = $(MAINFILE).c $(PHYSDIR)serial_connect.c $(LINKDIR)frame.c $(NETWORKDIR)packet.c $(DEBUGDIR)debug.c$(OUTPUT): $(WORKDIR) .depend $(OBJS) $(CC) $(CFLAGS) -o $(OUTPUT) $(OBJS)$(WORKDIR): mkdir $(WORKDIR)$(WORKDIR)$(MAINFILE).o: $(MAINFILE).c $(CC) $(CFLAGS) -c $(MAINFILE).c -o $(WORKDIR)$(MAINFILE).o$(WORKDIR)serial_connect.o: $(PHYSDIR)serial_connect.c $(CC) $(CFLAGS) -c $(PHYSDIR)serial_connect.c -o $(WORKDIR)serial_connect.o$(WORKDIR)frame.o: $(LINKDIR)frame.c $(CC) $(CFLAGS) -c $(LINKDIR)frame.c -o $(WORKDIR)frame.o$(WORKDIR)packet.o: $(NETWORKDIR)packet.c $(CC) $(CFLAGS) -c $(NETWORKDIR)packet.c -o $(WORKDIR)packet.o$(WORKDIR)debug.o: $(DEBUGDIR)debug.c $(CC) $(CFLAGS) -c $(DEBUGDIR)debug.c -o $(WORKDIR)debug.o.depend: $(SRCS) $(CC) $(CFLAGS) -M $(MAINFILE).c $(PHYSDIR)serial_connect.c $(LINKDIR)frame.c $(NETWORKDIR)packet.c $(DEBUGDIR)debug.c > .dependinclude .dependclean: -rm -rf $(WORKDIR) .depend $(OUTPUT)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -