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

📄 makefile

📁 Linux 下实现的线程库源代码
💻
字号:
PREFIX=/usrLIBDIR=$(PREFIX)/libINCLUDEDIR=$(PREFIX)/include#$(DESTDIR) is usally empty. rpmbuild needs it.DESTDIR=CC=gccCFLAGS=LIBS=INCLUDES=AR=arall: libthreadpool.a libthreadpool.a: thread-pool.o	$(AR) -r $@ $^thread-pool.o: src/thread-pool.c	$(CC) $(CFLAGS) -c $^ -o $@ $(LIBS) $(INCLUDES)install:	@echo Copying library files to $(DESTDIR)/$(LIBDIR):	@cp -rp libthreadpool.a	$(DESTDIR)/$(LIBDIR)/	@echo Copying head files to $(DESTDIR)/$(DATADIR):	@cp -rp src/thread-pool.h $(DESTDIR)/$(INCLUDEDIR)/clean:	rm -rf *.o \	       *.auninstall:	rm -rf	$(LIBDIR)/libthreadpool.a \		$(INCLUDEDIR)/thread-pool.h

⌨️ 快捷键说明

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