Compare commits
3 Commits
936c846b0c
...
01ee2257a4
| Author | SHA1 | Date | |
|---|---|---|---|
| 01ee2257a4 | |||
| b43f8411eb | |||
| c69def07a3 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,3 +14,5 @@ build/
|
|||||||
*.out
|
*.out
|
||||||
*.synctex.gz
|
*.synctex.gz
|
||||||
*.toc
|
*.toc
|
||||||
|
*.o
|
||||||
|
*.exe
|
||||||
|
|||||||
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +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)
|
||||||
|
|
||||||
9
Makefile.win
Normal file
9
Makefile.win
Normal file
@ -0,0 +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)
|
||||||
|
|
||||||
@ -1,5 +1,6 @@
|
|||||||
#include "ps_graph.h"
|
#include "ps_graph.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#define TEMP_BUF_SIZE 128
|
#define TEMP_BUF_SIZE 128
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user