Components in mpdm_sym() can be executable values (Closes: #1100).
[mpdm.git] / makefile.in
blob3ad58b93cfb69f6f89f2fa1859edc61df19d3260
1 # -*- Mode: sh
3 TARGET=libmpdm.a
4 LIB=$(TARGET)
6 all: $(TARGET) docs
8 PROJ=mpdm
9 DOCS=doc/mpdm_api.html doc/mpdm_overview.html
11 OBJS=mpdm_v.o mpdm_a.o mpdm_h.o mpdm_d.o mpdm_s.o mpdm_f.o \
12 mpdm_r.o gnu_regex.o
14 DIST_TARGET=/tmp/$(PROJ)-$(VERSION)
16 ##################################################################
18 version:
19 @echo $(VERSION)
21 .c.o:
22 $(CC) $(CFLAGS) `cat config.cflags` -c $<
24 dep:
25 gcc -MM *.c > makefile.depend
27 $(LIB): $(OBJS)
28 $(AR) rv $(LIB) $(OBJS)
30 stress: stress.c $(LIB)
31 $(CC) $(CFLAGS) `cat config.ldflags` stress.c -L. -lmpdm -o $@
33 doc/index.html: doc/index.txt
34 -grutatxt -i $< -o $@
36 doc/mpdm_overview.html: doc/mpdm_overview.txt
37 -grutatxt -i $< -o $@
39 doc/mpdm_api.html: mpdm_*.c
40 -mp_doccer mpdm_*.c -o doc/mpdm_api -f html1 \
41 -t "MPDM C API ($(VERSION))" \
42 -a 'Angel Ortega - angel@triptico.com'
44 docs: $(DOCS)
46 docsclean:
47 rm -f doc/*.html
49 clean:
50 rm -f $(TARGET) $(LIB) $(OBJS) *.o tags *.tar.gz stress
52 distclean: clean
53 rm -f config.h config.cflags config.ldflags makefile.opts .config.log Makefile
55 distcopy: distclean
56 mkdir -p $(DIST_TARGET) ; \
57 tar cf - * | (cd $(DIST_TARGET) ; tar xf -)
59 dist: distcopy
60 (cd /tmp ; tar czf - $(PROJ)-$(VERSION)/* ) > $(PROJ)-$(VERSION).tar.gz ; \
61 rm -rf $(DIST_TARGET)
63 .po.mo:
64 msgfmt -o $@ $<
66 build-mo:
67 for a in po/*.po ; do \
68 B=`basename $$a .po` ; \
69 mkdir -p po/$$B/LC_MESSAGES ; \
70 msgfmt -o po/$$B/LC_MESSAGES/stress.mo $$a ; \
71 done
73 installdoc:
74 -install -m 644 $(DOCS) $(DOCDIR)