usaa24/cv4/Makefile

18 lines
294 B
Makefile
Raw Permalink Normal View History

2024-10-17 17:50:10 +00:00
CC = gcc
CFLAGS = -Wall -Wextra
TARGET = train_management
all: $(TARGET)
$(TARGET): main.o a_train.o
$(CC) $(CFLAGS) -o $(TARGET) main.o a_train.o
main.o: main.c a_train.h
$(CC) $(CFLAGS) -c main.c
a_train.o: a_train.c a_train.h
$(CC) $(CFLAGS) -c a_train.c
clean:
rm -f $(TARGET) *.o