makefile
来自「这个资料非常不错」· 代码 · 共 64 行
TXT
64 行
CC = gccLINK = gcc CFLAGS = -g -c INCPATH = LIBS =OBJECTS_DIR = ./TARGET= pipe signal sharedmem semaphore socket msgqueueSUBDIR= pipe signal sharedmem semaphore socket msgqueue####### Implicit rules.SUFFIXES: .c .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<####### Build rulesall: echo "-----------Recursively Making Subdir-----------" for i in $(SUBDIR);\ do (echo "\"Make $@\" $$i Subdir";\ cd $$i;make $@); done####### Pipes Examplespipe: cd ./$@; make all;####### Message Queues Examplesmsgqueue: cd ./$@; make all; ####### Socket Examplessocket: cd ./$@; make all;####### Shared Memory Examples sharedmem: cd ./$@; make all;####### Semaphore Examplessemaphore: cd ./$@; make all;####### Signal Examplessignal: cd ./$@; make all;###### Clean Object filesinstall: echo "-----------Recursively Make Install Subdir-----------" for i in $(SUBDIR);\ do (echo "\"Make $@\" $$i Subdir";\ cd $$i;make $@); doneclean: echo "-----------Recursively Make Install Subdir-----------" for i in $(SUBDIR);\ do (echo "\"Make $@\" $$i Subdir";\ cd $$i;make $@); doneuninstall: cd ./bin;rm -f *;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?