Added nja njc and Makefile

This commit is contained in:
nils polek
2024-01-14 17:11:09 +00:00
parent 847f68bb29
commit 94fb404c71
13 changed files with 166 additions and 0 deletions

29
Makefile Normal file
View File

@@ -0,0 +1,29 @@
# Makefile for a simple C program
# Compiler
CC = gcc
# Compiler flags
CFLAGS = -g -Wall -std=c99 -pedantic
# Source file
SRC = njvm.c
# Executable name
TARGET = njvm
# Default target
all:
$(CC) $(CFLAGS) -o $(TARGET) $(SRC)
# Clean up
clean:
rm -f $(OBJ) $(TARGET)
run: all
./$(TARGET)
nja: ./nja/nja$(V)
./nja/nja$(V) $(IN) $(OUT)
njc: ./njc/njc$(V)
./njc/njc$(V) $(IN) $(OUT)