updated Makefile and .gitignore and added CMakeLists.txt and meson.build

This commit is contained in:
wt
2025-01-09 13:09:15 +07:00
parent bf40a2f7a3
commit da9ce1d0d1
4 changed files with 21 additions and 2 deletions
+1
View File
@@ -1 +1,2 @@
tte
build
+10
View File
@@ -0,0 +1,10 @@
cmake_minimum_required (VERSION 2.6)
project(tte)
set(CMAKE_C_FLAGS "-std=c99")
add_executable(
tte
tte.c
)
install(TARGETS tte DESTINATION /usr/bin)
+5 -2
View File
@@ -5,5 +5,8 @@ debug: tte.c
$(CC) tte.c -o tte -Wall -Wextra -pedantic -std=c99 -g
install: tte
sudo cp tte /usr/local/bin/
sudo chmod +x /usr/local/bin/
sudo cp tte /usr/bin/
sudo chmod +x /usr/bin/
uninstall:
sudo rm -v /usr/bin/tte
+5
View File
@@ -0,0 +1,5 @@
project('tte', 'c', default_options : ['c_std=c99'])
executable(
'tte',
'tte.c'
)