mf 2
This commit is contained in:
parent
51a1db8539
commit
ddec1650e6
24
Makefile
24
Makefile
@ -1,12 +1,12 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -pedantic
|
CFLAGS = -Wall -pedantic
|
||||||
LDFLAGS = -lm
|
LDFLAGS = -lm
|
||||||
BIN = graph.exe
|
BIN = graph.exe
|
||||||
OBJ = errors.o lex.o main.o math_functions.o parser.o ps_graph.o tree.o
|
OBJ = errors.o lex.o main.o math_functions.o parser.o ps_graph.o tree.o
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
$(CC) -c $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJ)
|
$(BIN): $(OBJ)
|
||||||
$(CC) $^ -o $@ $(LDFLAGS)
|
$(CC) $^ -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
|
|||||||
18
Makefile.win
18
Makefile.win
@ -1,9 +1,9 @@
|
|||||||
BIN = graph.exe
|
BIN = graph.exe
|
||||||
OBJ = errors.o lex.o main.o math_functions.o parser.o ps_graph.o tree.o
|
OBJ = errors.obj lex.obj main.obj math_functions.obj parser.obj ps_graph.obj tree.obj
|
||||||
|
|
||||||
.c.obj:
|
.c.obj:
|
||||||
cl $< /c
|
cl $< /c
|
||||||
|
|
||||||
$(BIN): $(OBJ)
|
$(BIN): $(OBJ)
|
||||||
cl $(OBJ) /Fe$(BIN)
|
cl $(OBJ) /Fe$(BIN)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user