makefile 1
This commit is contained in:
parent
936c846b0c
commit
c69def07a3
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
CC = gcc
|
||||||
|
CFLAGS = -Wall -pedantic -ansi
|
||||||
|
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) $(LDFLAGS) $^ -o $@
|
||||||
|
|
||||||
9
Makefile.win
Normal file
9
Makefile.win
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
BIN = graph.exe
|
||||||
|
OBJ = errors.o lex.o main.o parser.o ps_graph.o tree.o
|
||||||
|
|
||||||
|
.c.obj:
|
||||||
|
cl $< /c
|
||||||
|
|
||||||
|
$(BIN): $(OBJ)
|
||||||
|
cl $(OBJ) /Fe$(BIN)
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user