3 top_builddir = @top_builddir@
5 include $(top_builddir)/Makefile.common
7 CFLAGS += -Wall -I$(srcdir)/../link
11 SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
13 TARGET = $(top_builddir)/bin/asranlib$(EXEEXT)
17 install: all installdirs
18 $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/asranlib$(EXEEXT)|sed '$(transform)'`
19 $(STRIP) `echo $(DESTDIR)$(bindir)/asranlib$(EXEEXT)|sed '$(transform)'`
21 # Deleting all the installed files
22 # --------------------------------
24 rm -f $(DESTDIR)$(bindir)/asranlib$(EXEEXT)
26 # Performing self-test
27 # --------------------
31 # Performing installation test
32 # ----------------------------
36 # Creating installation directories
37 # ---------------------------------
39 $(INSTALL) -d $(DESTDIR)$(bindir)
42 # Creating dependencies
43 # ---------------------
46 $(TARGET): $(OBJECTS) dbuf.o dbuf_string.o
47 $(CC) $(LDFLAGS) -o $@ $(OBJECTS) dbuf.o dbuf_string.o
49 dbuf.o: $(srcdir)/../../support/Util/dbuf.c
50 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
52 dbuf_string.o: $(srcdir)/../../support/Util/dbuf_string.c
53 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
56 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
62 rm -f *core *[%~] *.[oa] *.output
64 rm -f $(top_builddir)/bin/asranlib$(EXEEXT)
66 distclean realclean: clean