# Makefile for a simple C program # Compiler CC = gcc # program to Run F = prog.bin # Compiler flags CFLAGS = -I ./bigint/build/include -L ./bigint/build/lib -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) debug: all ./$(TARGET) --debug $(F) run: all ./$(TARGET) $(F) nja: ./nja/nja$(V) ./nja/nja$(V) $(IN) $(OUT) njc: ./njc/njc$(V) ./njc/njc$(V) $(IN) $(OUT)