summaryrefslogtreecommitdiff
path: root/Makefile
blob: aeee62c2558cd340cb63b39e1257df04d92dc7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


ALLCFLAGS = -Wall -Wextra -std=c99 -g $(CFLAGS)
LINKFLAGS = -lz -lreadline

all: mdxtest

viewhtml.c: viewhtml.h
mdxtest.c: viewhtml.h

.c.o:
	$(CC) $(ALLCFLAGS) -c $< -o $@

mdxtest: mdxtest.o viewhtml.o
	$(CC) $(ALLCFLAGS) $(LINKFLAGS) $^ -o $@

clean:
	$(RM) mdxtest.o viewhtml.o mdxtest

.PHONY: all clean