1#CFLAGS = -g -Wall
2#CFLAGS = -O2 -Wall
3
4poster: poster.c
5	$(CC) $(CFLAGS) -o poster poster.c -lm
6
7# HPUX:	cc -O -Aa -D_POSIX_SOURCE -o poster poster.c -lm
8#       Note that this program might trigger a stupid bug in the HPUX C library,
9#       causing the sscanf() call to produce a core dump.
10#       For proper operation, DON'T give the `+ESlit' option to the HP cc,
11#       or use gcc WITH the `-fwritable-strings' option.
12
13install: poster
14	strip poster
15	cp poster /usr/local/bin
16	cp poster.1 /usr/local/man/man1
17
18clean:
19	rm -f poster core poster.o getopt.o
20
21tar:
22	tar -cvf poster.tar README Makefile poster.c poster.1 manual.ps
23	rm -f poster.tar.gz
24	gzip poster.tar
25