Ninja
cflags = -Wall
rule cc
command = gcc $cflags -c $in -o $out
build hello.o: cc hello.cLast updated
cflags = -Wall
rule cc
command = gcc $cflags -c $in -o $out
build hello.o: cc hello.cLast updated
# CMAKE generated file: DO NOT EDIT!
# Generated by "Ninja" Generator, CMake Version 3.24
# =============================================================================
# Project: DebuggingExample
# Configurations: Debug
# =============================================================================
ninja_required_version = 1.5
CONFIGURATION = Debug
include CMakeFiles/rules.ninja
cmake_ninja_workdir = .../cmake-build-debug/
...
build CMakeFiles/DebuggingExample.dir/main.c.obj: C_COMPILER__DebuggingExample_Debug .../main.c || cmake_object_order_depends_target_DebuggingExample
DEP_FILE = CMakeFiles\DebuggingExample.dir\main.c.obj.d
FLAGS = -g -fdiagnostics-color=always -std=gnu2x
INCLUDES = -I.../DebuggingExample/.
OBJECT_DIR = CMakeFiles\DebuggingExample.dir
OBJECT_FILE_DIR = CMakeFiles\DebuggingExample.dir
build DebuggingExample.exe: C_EXECUTABLE_LINKER__DebuggingExample_Debug CMakeFiles/DebuggingExample.dir/main.c.obj
FLAGS = -g
LINK_LIBRARIES = -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
OBJECT_DIR = CMakeFiles\DebuggingExample.dir
POST_BUILD = cd .
PRE_LINK = cd .
TARGET_FILE = DebuggingExample.exe
TARGET_IMPLIB = libDebuggingExample.dll.a
TARGET_PDB = DebuggingExample.exe.dbg
build DebuggingExample: phony DebuggingExample.exe
build all: phony DebuggingExample.exe
default all