measurer/Makefile

18 lines
287 B
Makefile
Raw Normal View History

2024-07-15 11:58:55 +02:00
CC = gcc
CFLAGS = -Wall -g
SOURCE = main.c
TARGET = measurer
# Default target
all: $(TARGET)
# Rule to build the executable
$(TARGET): $(SOURCE)
$(CC) $(CFLAGS) -o $@ $<
# Rule to clean up object files and the executable
clean:
rm -f $(TARGET) *.o
# Phony targets
.PHONY: all clean