ray/Makefile
Robert Nishihara 64c5e0880e Let workers get tasks from local scheduler. (#5)
* Restructure to have separate client and scheduler files. Shared stuff is in photon.h.

* Let workers get tasks from local scheduler.
2016-10-04 12:55:10 -07:00

21 lines
672 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_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)/*
FORCE: