blob: 0ceccb3d5e86f779796c95473a5f6a2e3d724f42 (
plain)
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
|
srcdir = @srcdir@
VPATH = $(srcdir)
LIBOBJECTS = \
misc.o parsePreamble.o part.o \
package.o parseDescription.o parsePrep.o read.o \
parseFiles.o parseReqs.o reqprov.o \
parseChangelog.o parseSpec.o spec.o \
parseScript.o parseBuildInstallClean.o build.o \
files.o myftw.o names.o pack.o macro.o
LIBBUILD = librpmbuild.a
LOADLIBES = -lrpm -lz ../popt/libpopt.a $(LIBEFENCE)
# -----------------------------------------------------------------------
include ../Makefile.inc
ifeq (.depend,$(wildcard .depend))
TARGET=everything
else
TARGET=depend everything
endif
all: $(TARGET)
everything: $(LIBBUILD)
$(LIBBUILD): $(LIBOBJECTS)
$(AR) r $@ $(LIBOBJECTS)
$(RANLIB) $@
$(PROGS): $(LIBOBJECTS)
# GNU make doesn't need the pack.c on here, but broken makes may
pack.o: pack.c
$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -o $@ -c $<
clean:
rm -f *.a *.o *~ $(PROGS)
distclean: clean
rm -f .depend Makefile
depend:
$(CPP) $(CFLAGS) -M $(srcdir)/*.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif
|