My third attempt at a CLI calculator. Supports functions, variables, implicit multiplication and a lot of customization options. Under 1000 LoC. Can be built with or without libreadline.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
361 B

READLINEFLAGS = -lreadline -DENABLE_READLINE
LDFLAGS =
CFLAGS = -Ofast -march=native -Wall -pedantic -Werror -lm $(READLINEFLAGS)
#CFLAGS = -ggdb -Wall -pedantic -Werror -lm $(READLINEFLAGS)
CC = cc
EXE = qc
all: $(EXE)
$(EXE): main.c expr.c expr.h expr_config.h
$(CC) -o $@ main.c expr.c $(LDFLAGS) $(CFLAGS)
.PHONY: clean
clean:
rm -f $(EXE)