mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

* Restructure to have separate client and scheduler files. Shared stuff is in photon.h. * Let workers get tasks from local scheduler.
21 lines
672 B
Makefile
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:
|