Switch to unified view

a/src/bincimapmime/Makefile b/src/bincimapmime/Makefile
1
include ../mk/sysconf
2
1
3
LIBS = libmime.a
2
LIBS = libmime.a
4
PROGS = trbinc
3
PROGS = trbinc
5
4
6
all: $(LIBS) 
5
all: depend $(LIBS) 
7
6
8
SRCS = mime-getpart.cc mime-parsefull.cc mime-parseonlyheader.cc \
7
SRCS = mime-getpart.cc mime-parsefull.cc mime-parseonlyheader.cc \
9
     mime-printbody.cc mime-printdoc.cc mime-printheader.cc mime.cc \
8
     mime-printbody.cc mime-printdoc.cc mime-printheader.cc mime.cc \
10
     convert.cc iodevice.cc iofactory.cc
9
     convert.cc iodevice.cc iofactory.cc
11
10
12
OBJS = mime-getpart.o mime-parsefull.o mime-parseonlyheader.o \
11
OBJS = mime-getpart.o mime-parsefull.o mime-parseonlyheader.o \
13
     mime-printbody.o mime-printdoc.o mime-printheader.o mime.o  \
12
     mime-printbody.o mime-printdoc.o mime-printheader.o mime.o  \
14
     convert.o iodevice.o iofactory.o
13
     convert.o iodevice.o iofactory.o
15
14
16
libmime.a : $(OBJS)
15
libmime.a : $(OBJS)
17
     ar ru libmime.a $(OBJS)
16
     $(AR) ru libmime.a $(OBJS)
18
17
19
# $(CXX) $(CXXFLAGS) -c $<
20
.cc .o : 
18
.cc .o : 
21
    $(CXX) $(CXXFLAGS) -c $<
19
    $(CXX) $(CXXFLAGS) -c $<
22
20
23
TRBINCOBJS = trbinc.o
21
TRBINCOBJS = trbinc.o
24
trbinc: trbinc.o
22
trbinc: trbinc.o
25
    $(CXX) -o trbinc trbinc.o libmime.a 
23
    $(CXX) -o trbinc trbinc.o libmime.a 
26
24
27
clean: 
25
depend: alldeps.stamp
28
  rm -f *.o $(LIBS)
26
alldeps.stamp : $(SRCS)
27
  $(CXX) -M $(CXXFLAGS) $(SRCS) > alldeps
28
  touch alldeps.stamp
29
29
30
depend: alldeps
30
clean:
31
alldeps: $(SRCS)
31
  cp /dev/null alldeps
32
  $(CXX) $(CXXFLAGS) -M $(SRCS) > alldeps
32
  rm -f alldeps.stamp
33
  rm -f ${LIBS} ${PROGS} ${OBJS}
34
35
include ../mk/sysconf
33
include alldeps
36
include alldeps