Compare commits

...

3 Commits

Author SHA1 Message Date
01ee2257a4 o a exe do gitignore 2024-12-30 19:22:19 +01:00
b43f8411eb uz to neni ansi 2024-12-30 19:21:45 +01:00
c69def07a3 makefile 1 2024-12-30 19:13:37 +01:00
4 changed files with 24 additions and 0 deletions

2
.gitignore vendored
View File

@ -14,3 +14,5 @@ build/
*.out
*.synctex.gz
*.toc
*.o
*.exe

12
Makefile Normal file
View 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
View 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)

View File

@ -1,5 +1,6 @@
#include "ps_graph.h"
#include <math.h>
#include <stdio.h>
#define TEMP_BUF_SIZE 128