Files
ray/Makefile
T
Robert Nishihara 18934c3a45 Make photon client into a C extension. (#8)
* 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.
2016-10-07 11:00:46 -07:00

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: