mf 2
This commit is contained in:
parent
51a1db8539
commit
ddec1650e6
24
Makefile
24
Makefile
@ -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)
|
||||
|
||||
|
||||
18
Makefile.win
18
Makefile.win
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user