1 Star 0 Fork 3

海天之间 / threadtask

forked from 阿宝 / threadtask 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 855 Bytes
一键复制 编辑 原始数据 按行查看 历史
CC := gcc
PHPDIR ?= /opt/phpts
PHPSO ?= php7
PHPINC := $(PHPDIR)/include/php
CFLAGS := -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 $(LDFLAGS)
all: $(PHPINC)
$(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
@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 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/roadahead/threadtask.git
git@gitee.com:roadahead/threadtask.git
roadahead
threadtask
threadtask
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891