18 lines
287 B
Makefile
18 lines
287 B
Makefile
|
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
|