Big int works

This commit is contained in:
nils polek
2024-01-18 17:17:07 +00:00
parent 5039f95153
commit 70dbd0253b
9 changed files with 68 additions and 4 deletions

View File

@@ -7,7 +7,9 @@ CC = gcc
F = prog.bin
# Compiler flags
CFLAGS = -I ./bigint/build/include -L ./bigint/build/lib -g -Wall -std=c99 -pedantic
CFLAGS = -g -Wall -Ibigint/build/include
LDFLAGS = -g -Wall -Lbigint/build/lib
# Source file
SRC = njvm.c
@@ -15,9 +17,15 @@ SRC = njvm.c
# Executable name
TARGET = njvm
njvm.o:
$(CC) $(CFLAGS) -o njvm.o -c njvm.c
support.o:
$(CC) $(CFLAGS) -o support.o -c support.c
# Default target
all:
$(CC) $(CFLAGS) -o $(TARGET) $(SRC)
all: njvm.o support.o
$(CC) $(LDFLAGS) -o $(TARGET) njvm.o support.o -lbigint
# Clean up
clean:
rm -f $(OBJ) $(TARGET)