File: Makefile

package info (click to toggle)
xpcd 2.08-11.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 652 kB
  • ctags: 556
  • sloc: ansic: 6,384; makefile: 227; sh: 204; perl: 12
file content (51 lines) | stat: -rw-r--r-- 1,165 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Generated automatically from Makefile.in by configure.
srcdir=.

include ../Make.config

CFLAGS=-g -O2 -Wall -I.. -I$(srcdir)/../libpcd  -I/usr/X11R6/include
LDLIBS=-L../libpcd -lpcd

PROGS=pcdtoppm pcdview

SRCS=	$(srcdir)/ppm.c \
	$(srcdir)/plug-0.54.c \
	$(srcdir)/view.c \
	$(srcdir)/svga.c \
	$(srcdir)/dither.c

all: $(PROGS)

pcdview: view.o dither.o svga.o
	rm -f $@
	$(CC) $(CFLAGS) -o $@ view.o dither.o svga.o $(LDLIBS) -lvga  -lvgagl

suid:
	su -c "chown root.root pcdview;chmod 4711 pcdview"

install:
	$(MKDIR) $(bindir)
	$(INSTALL_PROGRAM) pcdtoppm $(bindir)
	$(INSTALL_DATA) $(srcdir)/pcdtoppm.man $(mandir)/man1/pcdtoppm.1
	$(INSTALL_DATA) $(srcdir)/pcdview.man $(mandir)/man1/pcdview.1
	test -f pcdview && \
		$(INSTALL_PROGRAM) $(SUID_ROOT) pcdview $(bindir) || true

pcdtoppm: ppm.o
	$(CC) $(CFLAGS) -o $@ ppm.o $(LDLIBS) -ljpeg 

plug-0.54: plug-0.54.o
	$(CC) $(CFLAGS) -o $@ plug.o $(LDLIBS) @LIBGIMP54@


depend dep:
	$(DEPEND) -- $(CFLAGS) -- $(SRCS)

clean:
	rm -f *~ *.o *.bak

realclean:
	rm -f $(PROGS)

#-------------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- make depend depends on it.