File: Makefile

package info (click to toggle)
poster 1:20050907-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 132 kB
  • ctags: 73
  • sloc: ansic: 885; makefile: 57
file content (30 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# on Debian:
DEFINES  = -DHAVE_LIBPAPER
CFLAGS = -O2 -g -Wall
LIBS = -lm -lpaper
# elsewhere
#DEFINES = # nothing
#CFLAGS = -g -Wall
#LIBS = -lm

poster: poster.c
	gcc $(CFLAGS) -o poster $(DEFINES) poster.c $(LIBS)

# HPUX:	cc -O -Aa -D_POSIX_SOURCE -o poster poster.c -lm
#       Note that this program might trigger a stupid bug in the HPUX C library,
#       causing the sscanf() call to produce a core dump.
#       For proper operation, DON'T give the `+ESlit' option to the HP cc,
#       or use gcc WITH the `-fwritable-strings' option.

install: poster
	strip poster
	cp poster /usr/local/bin
	cp poster.1 /usr/local/man/man1

clean:
	rm -f poster core poster.o getopt.o

tar:
	tar -cvf poster.tar README Makefile poster.c poster.1 manual.ps
	rm -f poster.tar.gz
	gzip poster.tar