summaryrefslogtreecommitdiff
path: root/build/Makefile.in
blob: d92f686d8449c66ac3ad160a4db7f3280ae33d5f (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
srcdir = @srcdir@
top_srcdir = @top_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

TARGET=everything

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 Makefile

depend:
	topdir_path=`( cd $(top_srcdir) && pwd )` ; \
	$(CPP) $(CFLAGS) -MM $(srcdir)/*.c | \
	    sed s+$$topdir_path+$(top_srcdir)+g > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif