add repl-readline target

This commit is contained in:
Martin Dørum
2020-10-13 19:33:31 +02:00
parent 74e451e7be
commit 7e5358cc52

View File

@@ -16,6 +16,9 @@ smoke_pr: smoke.c tinyexpr.c
./$@
repl: repl.o tinyexpr.o
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
repl-readline: repl-readline.o tinyexpr.o
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS) -lreadline
bench: benchmark.o tinyexpr.o
@@ -30,6 +33,9 @@ example2: example2.o tinyexpr.o
example3: example3.o tinyexpr.o
$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS)
repl-readline.o: repl.c
$(CC) -c -DUSE_READLINE $(CCFLAGS) $< -o $@
.c.o:
$(CC) -c $(CCFLAGS) $< -o $@