File: Makefile

package info (click to toggle)
memdump 1.01-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 112 kB
  • ctags: 47
  • sloc: ansic: 402; makefile: 66
file content (45 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (6)
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
SHELL	= /bin/sh
CC	= gcc -Wformat -Wunused
OPT	= -O
DEBUG	= -g
PROGS	= memdump
CFLAGS	= $(OPT) $(DEBUG) -I. $(XFLAGS) $(DEFS)
OBJS	= memdump.o convert_size.o error.o mymalloc.o
PROGS	= memdump
MAN	= memdump.1

what:
	@sh makedefs

all:	$(PROGS)

manpages: $(MAN)

memdump:	$(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(SYSLIBS)

memdump.1: memdump.c
	srctoman $? >$@

clean:
	rm -f $(PROGS) *.o core *.core

depend: $(MAKES)
	(sed '1,/^# do not edit/!d' Makefile; \
	set -e; for i in [a-z][a-z0-9]*.c; do \
	    $(CC) -E $(DEFS) $(INCL) $$i | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
	    -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' -e 'p' -e '}'; \
	done) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile

# do not edit below this line - it is generated by 'make depend'
convert_size.o: convert_size.c
convert_size.o: convert_size.h
error.o: error.c
error.o: error.h
memdump.o: memdump.c
memdump.o: convert_size.h
memdump.o: error.h
memdump.o: mymalloc.h
mymalloc.o: mymalloc.c
mymalloc.o: error.h
mymalloc.o: mymalloc.h