mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 14:00:20 +08:00
18934c3a45
* Make photon client into a C extension. * Fix formatting. * Rename extension from PhotonClient to Photon. * Update common submodule. * Fix Makefile to compile with fPIC. * Update common submodule. * Compile C extension against common. * Fix formatting. * Remove unnecessary include. * Update common submodule and rename Photon -> PhotonClient. * Drop global interpretor lock during get_task.
23 lines
609 B
Makefile
23 lines
609 B
Makefile
CC = gcc
|
|
CFLAGS = -g -Wall --std=c99 -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -Icommon/thirdparty -fPIC
|
|
BUILD = build
|
|
|
|
all: $(BUILD)/photon_scheduler $(BUILD)/photon_client.a
|
|
|
|
$(BUILD)/photon_client.a: photon_client.o
|
|
ar rcs $(BUILD)/photon_client.a photon_client.o
|
|
|
|
$(BUILD)/photon_scheduler: photon.h photon_scheduler.c common
|
|
$(CC) $(CFLAGS) -o $@ photon_scheduler.c common/build/libcommon.a common/thirdparty/hiredis/libhiredis.a -Icommon/thirdparty -Icommon/
|
|
|
|
common: FORCE
|
|
git submodule update --init --recursive
|
|
cd common; make
|
|
|
|
clean:
|
|
cd common; make clean
|
|
rm -r $(BUILD)/*
|
|
rm *.o
|
|
|
|
FORCE:
|