From 53240c261dc7f7f03a6f914df53041991b23b590 Mon Sep 17 00:00:00 2001 From: Eyal Sawady Date: Sat, 17 Oct 2020 18:25:09 -0400 Subject: [PATCH] Add Makefile Also remove unnessecary stuff from .gitignore and fix meson binary name. --- .gitignore | 101 ++-------------------------------------------------- Makefile | 6 ++++ meson.build | 2 +- 3 files changed, 9 insertions(+), 100 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 7b55abb..2e0e18b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,99 +1,2 @@ -# Created by .ignore support plugin (hsz.mobi) -### C template -# Prerequisites -*.d - -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf - -### C template -# Prerequisites - -# Object files - -# Linker output - -# Precompiled Headers - -# Libraries - -# Shared objects (inc. Windows DLLs) - -# Executables - -# Debug files - -# Kernel Module Compile Results - -### CMake template -CMakeLists.txt.user -CMakeCache.txt -CMakeFiles -CMakeScripts -Testing -Makefile -cmake_install.cmake -install_manifest.txt -compile_commands.json -CTestTestfile.cmake -_deps - -/.idea -/cmake-build-debug -/cmake-build-release -*~ - -/.ninja_deps -/.ninja_log -/build.ninja -/meson-info -/meson-private -/builddir -/build +among-sus +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..71c574a --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +.POSIX: +all: + $(CC) -o among-sus $(CFLAGS) main.c + +clean: + rm -f among-sus diff --git a/meson.build b/meson.build index 2fc0601..062fd3a 100644 --- a/meson.build +++ b/meson.build @@ -2,4 +2,4 @@ project('among-oss', 'c') cc = meson.get_compiler('c') libm = cc.find_library('m', required: false) -executable('among-oss', 'main.c', install : true) +executable('among-sus', 'main.c', install : true)