1# These are the production settings
2CC=gcc -O2 -s -Wall
3STRIP=strip
4LIBS=-lncurses
5
6# I use these to debug
7# CC=g++ -g -O0
8# STRIP=ls
9# LIBS=-lncurses_g
10
11all:	duhdraw ansitoc ansi
12
13ansi:	cleanansi
14	$(CC) -o ansi ansi.c ansi-esc.c $(LDFLAGS) $(LIBS)
15	$(STRIP) ansi
16
17duhdraw:	cleandd
18	$(CC) -o duhdraw duhdraw.c ansi-esc.c $(LDFLAGS) $(LIBS)
19	$(STRIP) duhdraw
20
21ansitoc:	cleanansitoc
22	$(CC) -o ansitoc ansitoc.c
23	$(STRIP) ansitoc
24
25cleanansi:
26	rm -f ansi
27
28cleanansitoc:
29	rm -f ansitoc
30
31cleandd:
32	rm -f duhdraw
33
34clean:	cleanansi cleanansitoc cleandd
35	rm -f *~
36