Add Makefile
Also remove unnessecary stuff from .gitignore and fix meson binary name.
This commit is contained in:
parent
1c2bf6da12
commit
53240c261d
|
@ -1,99 +1,2 @@
|
||||||
# Created by .ignore support plugin (hsz.mobi)
|
among-sus
|
||||||
### C template
|
build
|
||||||
# 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
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
.POSIX:
|
||||||
|
all:
|
||||||
|
$(CC) -o among-sus $(CFLAGS) main.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f among-sus
|
|
@ -2,4 +2,4 @@ project('among-oss', 'c')
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
libm = cc.find_library('m', required: false)
|
libm = cc.find_library('m', required: false)
|
||||||
|
|
||||||
executable('among-oss', 'main.c', install : true)
|
executable('among-sus', 'main.c', install : true)
|
||||||
|
|
Loading…
Reference in New Issue