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

LIBOBJECTS = spec.o vspec.o build.o files.o names.o pack.o myftw.o reqprov.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