1 Star 0 Fork 3

曹海为 / threadtask

forked from 阿宝 / threadtask 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
阿宝 提交于 2022-05-10 22:13 . 添加函数调用性能分析功能。
CC := gcc
PHPDIR ?= /opt/phpts
PHPSO ?= php7
PHPINC := $(PHPDIR)/include/php
CFLAGS := -g -O2 -Wall -I$(PHPINC) -I$(PHPINC)/ext -I$(PHPINC)/main -I$(PHPINC)/sapi -I$(PHPINC)/TSRM -I$(PHPINC)/Zend $(CFLAGS)
LDFLAGS := -L$(PHPDIR)/lib -Wl,-rpath,$(PHPDIR)/lib -l$(PHPSO) -pthread -rdynamic $(LDFLAGS)
all: $(PHPINC)
@echo -n
$(PHPINC):
$(error The $@ is not directory. Please usage "make PHPDIR=<dir>" by php dir, for example: /opt/phpts)
all: $(PHPDIR)/lib/lib$(PHPSO).so
$(PHPDIR)/lib/lib$(PHPSO).so:
$(error The $@ is not directory. Please usage "make PHPDIR=<dir>" by php dir, for example: /opt/phpts)
all: threadtask
threadtask: main.o func.o hash.o strnatcmp.o
@echo LD $@
@$(CC) -o $@ $^ $(LDFLAGS)
main.o: func.h
func.o: func.h hash.h
hash.o: hash.h
%.o: %.c
@echo CC $@
@$(CC) $(CFLAGS) -c -o $@ $<
clean:
@LANG=en rm -vf *.o threadtask
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/cao-haiwei/threadtask.git
git@gitee.com:cao-haiwei/threadtask.git
cao-haiwei
threadtask
threadtask
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891