blob: 35ac3bb3aaca94e5ad5133582b19b01d650fe10f (
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 ../Makefile.inc
LIBOBJECTS = @MISCOBJS@
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
|