SAE11_2023/Makefile

15 lines
192 B
Makefile
Raw Normal View History

2023-12-11 14:45:42 +01:00
CC = gcc
CFLAGS = -Wall -Wextra -I.
LIBS = -lgraph
all: serpent
serpent: main.o serpent.o
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f *.o serpent