This commit is contained in:
tovjemam 2025-01-04 22:25:16 +01:00
parent 51a1db8539
commit ddec1650e6
2 changed files with 21 additions and 21 deletions

View File

@ -1,12 +1,12 @@
CC = gcc
CFLAGS = -Wall -pedantic
LDFLAGS = -lm
BIN = graph.exe
OBJ = errors.o lex.o main.o math_functions.o parser.o ps_graph.o tree.o
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJ)
$(CC) $^ -o $@ $(LDFLAGS)
CC = gcc
CFLAGS = -Wall -pedantic
LDFLAGS = -lm
BIN = graph.exe
OBJ = errors.o lex.o main.o math_functions.o parser.o ps_graph.o tree.o
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJ)
$(CC) $^ -o $@ $(LDFLAGS)

View File

@ -1,9 +1,9 @@
BIN = graph.exe
OBJ = errors.o lex.o main.o math_functions.o parser.o ps_graph.o tree.o
.c.obj:
cl $< /c
$(BIN): $(OBJ)
cl $(OBJ) /Fe$(BIN)
BIN = graph.exe
OBJ = errors.obj lex.obj main.obj math_functions.obj parser.obj ps_graph.obj tree.obj
.c.obj:
cl $< /c
$(BIN): $(OBJ)
cl $(OBJ) /Fe$(BIN)