summaryrefslogtreecommitdiff
path: root/build/Makefile.in
blob: 947268d10c05b4db16f45342a3863374a1f9eb26 (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
srcdir = @srcdir@
VPATH = $(srcdir)

LIBOBJECTS = spec.o vspec.o build.o files.o names.o pack.o myftw.o \
		reqprov.o trigger.o macro.o
LIBBUILD = libbuild.a
LOADLIBES = -lrpm $(LIBEFENCE)

# -----------------------------------------------------------------------

include $(srcdir)/../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)

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