mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 05:06:54 +08:00
35ce5f8001
* Enable more warnings and fix usleep() issue * Periods after comments.
21 lines
806 B
Makefile
21 lines
806 B
Makefile
CC = gcc
|
|
CFLAGS = -g -Wall -Wextra -Werror=implicit-function-declaration -Wno-sign-compare -Wno-unused-parameter -Wno-type-limits -Wno-missing-field-initializers --std=c99 -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -I.. -I../common -I../common/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 photon_algorithm.c common
|
|
$(CC) $(CFLAGS) -o $@ photon_scheduler.c photon_algorithm.c ../common/build/libcommon.a ../common/thirdparty/hiredis/libhiredis.a -I../common/thirdparty/ -I../common/ ../plasma/build/libplasma_client.a -I../plasma/
|
|
|
|
common: FORCE
|
|
cd ../common; make
|
|
|
|
clean:
|
|
rm -rf $(BUILD)/*
|
|
rm -f *.o
|
|
|
|
FORCE:
|