added in makefile to make it easy to compile after cloning :)
This commit is contained in:
parent
ed4cb2f8b9
commit
9bb31ad83c
2 changed files with 18 additions and 14 deletions
14
.gitignore
vendored
14
.gitignore
vendored
|
|
@ -61,20 +61,6 @@ dkms.conf
|
|||
# debug information files
|
||||
*.dwo
|
||||
|
||||
# ---> CMake
|
||||
CMakeLists.txt.user
|
||||
CMakeCache.txt
|
||||
CMakeFiles
|
||||
CMakeScripts
|
||||
Testing
|
||||
Makefile
|
||||
cmake_install.cmake
|
||||
install_manifest.txt
|
||||
compile_commands.json
|
||||
CTestTestfile.cmake
|
||||
_deps
|
||||
CMakeUserPresets.json
|
||||
|
||||
# CLion
|
||||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||
|
|
|
|||
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
CC = gcc
|
||||
CFLAGS = `pkg-config --cflags gtk4`
|
||||
LIBS = `pkg-config --libs gtk4`
|
||||
TARGET = sprechen
|
||||
SRC = sprechen.c
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
||||
run: $(TARGET)
|
||||
./$(TARGET)
|
||||
|
||||
.PHONY: all clean run
|
||||
Loading…
Add table
Add a link
Reference in a new issue