Mercurial > hg > Members > tobaru > CbC_xv6
comparison src/usr/CMakeLists.txt @ 156:18a432ac4f9f
add Syscall close
author | tobaru |
---|---|
date | Fri, 20 Dec 2019 16:05:31 +0900 |
parents | 239bd73abac6 |
children |
comparison
equal
deleted
inserted
replaced
119:94ee7046d190 | 156:18a432ac4f9f |
---|---|
55 COMMAND nvcc ${NVCCFLAG} -c -ptx -o ${j} ${i} | 55 COMMAND nvcc ${NVCCFLAG} -c -ptx -o ${j} ${i} |
56 ) | 56 ) |
57 list(APPEND _Gears_CBC_SOURCES ${j}) | 57 list(APPEND _Gears_CBC_SOURCES ${j}) |
58 else() | 58 else() |
59 set(j ${i}) | 59 set(j ${i}) |
60 file(COPY "${CMAKE_SOURCE_DIR}/context.h" DESTINATION "${CMAKE_BINARY_DIR}/usr/${_Gears_TARGET}.dir") | |
61 list(APPEND _Gears_CSOURCES ${j}) | 60 list(APPEND _Gears_CSOURCES ${j}) |
62 endif() | 61 endif() |
63 endforeach(i) | 62 endforeach(i) |
64 | 63 |
65 add_custom_command ( | 64 add_custom_command ( |
66 OUTPUT ${_Gears_TARGET}.dir/c/${_Gears_TARGET}-context.c | 65 OUTPUT CMakeFiles/${_Gears_TARGET}.dir/c/${_Gears_TARGET}-context.c |
67 DEPENDS ${_Gears_CBC_SOURCES} | 66 DEPENDS ${_Gears_CBC_SOURCES} |
68 COMMAND "cd" "${_Gears_TARGET}.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} "-w" ${CMAKE_SOURCE_DIR}/usr/${_Gears_CSOURCES} | 67 COMMAND "cd" "CMakeFiles/${_Gears_TARGET}.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} "-w" ${CMAKE_SOURCE_DIR}/usr/${_Gears_CSOURCES} |
69 ) | 68 ) |
70 add_executable(${_Gears_TARGET} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} ${_Gears_TARGET}.dir/c/${_Gears_TARGET}-context.c ) | 69 add_executable(${_Gears_TARGET} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} CMakeFiles/${_Gears_TARGET}.dir/c/${_Gears_TARGET}-context.c ) |
71 target_link_libraries(${_Gears_TARGET} ulib) | 70 target_link_libraries(${_Gears_TARGET} ulib) |
72 endmacro() | 71 endmacro() |
73 | 72 |
74 add_library(ulib STATIC ulib.c usys.S printf.c umalloc.c) | 73 add_library(ulib STATIC ulib.c usys.S printf.c umalloc.c) |
75 #add_library(syslib string.c) | 74 #add_library(syslib string.c) |