CFLAGS=-g -Wall
-tmp: tmp.c cstring.o cstack.o markdown.o parser.o viewer.o
- cc $(CFLAGS) -o tmp tmp.c cstring.o cstack.o markdown.o parser.o viewer.o -lncurses
+mdp: mdp.c cstring.o cstack.o markdown.o parser.o viewer.o
+ cc $(CFLAGS) -o mdp mdp.c cstring.o cstack.o markdown.o parser.o viewer.o -lncurses
viewer.o: viewer.c
cc $(CFLAGS) -c viewer.c
cstring.o: cstring.c
cc $(CFLAGS) -c cstring.c
-all: tmp
+all: mdp
clean:
- rm -f tmp *.o
+ rm -f mdp *.o
.PHONY: test
#include "include/viewer.h"
void usage() {
- fprintf(stderr, "Usage: tmp [OPTION]... [FILE]\n");
+ fprintf(stderr, "Usage: mdp [OPTION]... [FILE]\n");
fprintf(stderr, "A command-line based markdown presentation tool.\n\n");
fprintf(stderr, " -d, --debug enable debug messages on STDERR\n");
fprintf(stderr, " add it multiple times to increases debug level\n\n");