blob: 63b76ddb3ca0b2fd1e2ad1bbeb3ae3189425f7ab (
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
|
srcdir = @srcdir@
VPATH = $(srcdir)
include $(srcdir)/../Makefile.inc
LIBOBJECTS = @MISCOBJS@ popt.o
LIBMISC = libmisc.a
# -----------------------------------------------------------------------
ifeq (.depend,$(wildcard .depend))
TARGET=everything
else
TARGET=depend everything
endif
all: $(TARGET)
everything: $(LIBMISC)
$(LIBMISC): $(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
|