mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 05:13:07 +08:00
ff8018db75
* draft of local scheduler * API * update APIs * fix * update * Rename halo -> photon. * Add build directory. * Update common submodule. * More renaming. * Fix python ctypes. * Compile in travis. * Process generic messages and not just tasks. * Move free outside of switch. * Formatting and address comments. * Remove event loop from local scheduler state. * Use accept_client from common. * Use bind_ipc_sock from common. * Fix tests. * Update common submodule. * Fix formatting.
22 lines
652 B
Makefile
22 lines
652 B
Makefile
CC = gcc
|
|
CFLAGS = -g -Wall --std=c99 -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -Icommon/thirdparty
|
|
BUILD = build
|
|
|
|
all: $(BUILD)/photon_scheduler $(BUILD)/photon_client.so
|
|
|
|
$(BUILD)/photon_client.so: photon_client.h photon_client.c common
|
|
$(CC) $(CFLAGS) photon_client.c common/build/libcommon.a -fPIC -shared -o $(BUILD)/photon_client.so
|
|
|
|
$(BUILD)/photon_scheduler: photon.h photon.c common
|
|
$(CC) $(CFLAGS) -o $@ photon.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)/*
|
|
|
|
FORCE:
|