32 lines
523 B
Makefile
32 lines
523 B
Makefile
LIBOBJECTS = spec.o build.o pack.o
|
|
LIBBUILD = libbuild.a
|
|
LOADLIBES = -lrpm $(LIBEFENCE)
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
ifeq (.depend,$(wildcard .depend))
|
|
TARGET=everything
|
|
else
|
|
TARGET=depend everything
|
|
endif
|
|
|
|
all: $(TARGET)
|
|
|
|
everything: $(LIBBUILD)
|
|
|
|
$(LIBBUILD): $(LIBOBJECTS)
|
|
$(AR) $@ $(LIBOBJECTS)
|
|
$(RANLIB) $@
|
|
|
|
$(PROGS): $(LIBOBJECTS)
|
|
|
|
clean:
|
|
rm -f *.a *.o *~ $(PROGS)
|
|
|
|
depend:
|
|
$(CPP) $(CFLAGS) -M *.c > .depend
|
|
|
|
ifeq (.depend,$(wildcard .depend))
|
|
include .depend
|
|
endif
|