1 Star 0 Fork 12

Judith/wayca-scheduler

forked from openEuler/wayca-scheduler 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.79 KB
一键复制 编辑 原始数据 按行查看 历史
young1c 提交于 2021-07-18 22:46 . Add Cmake support for wayca scheduler
#Todo: move to autoconf + automake
tools = wayca-deployer wayca-deployd wayca-irqdump wayca-irqdeploy wayca-taskdeploy wayca-sc-info
tests = wayca_sc_group wayca_thread wayca_threadpool wayca_topo wayca_bitmap
all: $(tools) $(tests)
wayca-deployd: libwaycadeployer.so.1.0 deployd.c
$(CC) $(CFLAGS) deployd.c -L. -lwaycadeployer -I./include -o $@
wayca-deployer: libwaycadeployer.so.1.0 deployer.c perf.c
$(CC) $(CFLAGS) deployer.c perf.c -L. -lwaycadeployer -I./include -o $@
wayca-taskdeploy: libwaycadeployer.so.1.0 taskdeploy.c perf.c
$(CC) $(CFLAGS) taskdeploy.c perf.c -L. -lwaycadeployer -I./include -o $@
wayca-irqdeploy: libwaycadeployer.so.1.0 irqdeploy.c
$(CC) $(CFLAGS) irqdeploy.c -L. -lwaycadeployer -I./include -o $@
wayca-irqdump: libwaycadeployer.so.1.0 irqdump.c
$(CC) $(CFLAGS) irqdump.c -L. -lwaycadeployer -I./include -o $@
wayca-sc-info: libwaycadeployer.so.1.0 tools/wayca-sc-info/wayca_sc_info.c
$(CC) $(CFLAGS) tools/wayca-sc-info/wayca_sc_info.c \
tools/wayca-sc-info/wayca_sc_topo.c \
-L. -lwaycadeployer -lxml2 -I/usr/include/libxml2\
-I./include -I ./ -o tools/wayca-sc-info/$@
libwaycadeployer.so.1.0: lib/threads.o lib/managed_threads.o lib/irq.o lib/mem.o lib/topo.o lib/group.o lib/log.o
$(CC) -fPIC -pthread -shared -Wl,-soname,libwaycadeployer.so.1 -o $@ $^
-ln -s libwaycadeployer.so.1.0 libwaycadeployer.so
-ln -s libwaycadeployer.so.1.0 libwaycadeployer.so.1
# test stubs
wayca_sc_group: libwaycadeployer.so.1.0 test/wayca_sc_group.c
$(CC) $(CFLAGS) test/wayca_sc_group.c -L. -lwaycadeployer -I./include -o test/$@
wayca_thread: libwaycadeployer.so.1.0 test/wayca_thread.c
$(CC) $(CFLAGS) test/wayca_thread.c -L. -lwaycadeployer -I./include -o test/$@
wayca_threadpool: libwaycadeployer.so.1.0 test/wayca_threadpool.c
$(CC) $(CFLAGS) test/wayca_threadpool.c -L. -lwaycadeployer -I./include -o test/$@
wayca_topo: libwaycadeployer.so.1.0 test/wayca_topo.c
$(CC) $(CFLAGS) test/wayca_topo.c -L. -lwaycadeployer -I./include -o test/$@
wayca_bitmap: test/wayca_bitmap.c
$(CC) $(CFLAGS) test/wayca_bitmap.c -I./lib -I./include -o test/$@
CFLAGS += -Wall -fPIC -DWAYCA_SCHEDULER_VERSION=\"0.1\"
ifeq ($(DEBUG), 1)
CFLAGS += -g -DWAYCA_SC_DEBUG
endif
SRCS = $(wildcard *.c)
OBJS =$(SRCS:.c=.o)
DEPS = $(SRCS:.c=.d)
CC = $(CROSS_COMPILE)gcc
INSTALL_PREFIX = /usr
$(DEPS) : %.d : %.c
$(CROSS_COMPILE)gcc -MM $< > $@
SRCS = $(wildcard *.c)
%.o : %.c
$(CC) -c $(CFLAGS) -I./include -o $@ $^
install:
install -d -m 755 $(INSTALL_PREFIX)/lib
install -d -m 755 $(INSTALL_PREFIX)/bin
install -d -m 755 $(INSTALL_PREFIX)/include
install *.so* $(INSTALL_PREFIX)/lib/
install $(tools) $(INSTALL_PREFIX)/bin
install include/wayca-scheduler.h $(INSTALL_PREFIX)/include
clean:
-rm -f *.o lib/*.o
-rm -f *.so*
-rm -f $(tools)
-rm -f tools/wayca-sc-info/wayca-sc-info
-cd test && rm -f $(tests)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/judithsq/wayca-scheduler.git
git@gitee.com:judithsq/wayca-scheduler.git
judithsq
wayca-scheduler
wayca-scheduler
master

搜索帮助