Skip to content

Commit 4c984f1

Browse files
committed
Use CMake to generate Makefile and drop manual created Makefile
Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
1 parent a2cf6d7 commit 4c984f1

3 files changed

Lines changed: 23 additions & 31 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build/

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
project(tinymembench ASM C)
3+
set(CMAKE_C_STANDARD 11)
4+
5+
set(asm_files
6+
aarch64-asm.S
7+
arm-neon.S
8+
mips-32.S
9+
x86-sse2.S
10+
)
11+
12+
set(sources_files
13+
asm-opt.c
14+
main.c
15+
util.c
16+
)
17+
18+
add_executable(tinymembench ${asm_files} ${sources_files})
19+
target_include_directories(tinymembench PRIVATE .)
20+
target_link_libraries(tinymembench m)
21+
22+
INSTALL(TARGETS tinymembench RUNTIME DESTINATION /usr/bin/)

Makefile

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)