File: Makefile

package info (click to toggle)
dpkg 1.10.28
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,408 kB
  • ctags: 2,302
  • sloc: ansic: 16,124; perl: 5,042; sh: 4,819; cpp: 4,405; makefile: 1,018; sed: 16
file content (37 lines) | stat: -rw-r--r-- 625 bytes parent folder | download
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


srcdir		= .
top_srcdir	= ..

default: all
include ../Makefile.conf

SOURCES		= compat.c compression.c database.c dbmodify.c dump.c \
		    ehandle.c fields.c lock.c mlib.c myopt.c nfmalloc.c \
		    parse.c parsehelp.c showcright.c showpkg.c tarfn.c \
		    varbuf.c vercmp.c md5.c utils.c

OBJECTS		= $(patsubst %.c, %.o, $(SOURCES))
GENFILES	= $(OBJECTS) libdpkg.a

ALL_CFLAGS	+= -DCOPYINGFILE=\"$(copyingfile)\"

.PHONY: all
all:: libdpkg.a

libdpkg.a: $(OBJECTS) 
	$(AR) r $@ $^
	$(RANLIB) $@

.PHONY: install
install:: all

.PHONY: clean
clean::
	$(RM) $(GENFILES)


.PHONY: distclean
cvslean:: clean
	$(RM) Makefile