Imported Upstream version 2.9.0
[debian/cc1111] / as / asranlib / Makefile.in
1 VPATH        = @srcdir@
2 srcdir       = @srcdir@
3 top_builddir = @top_builddir@
4
5 include $(top_builddir)/Makefile.common
6
7 CFLAGS          += -Wall -I$(srcdir)/../link
8
9 OBJECTS         = asranlib.o
10
11 SOURCES         = $(patsubst %.o,%.c,$(OBJECTS))
12
13 TARGET          = $(top_builddir)/bin/asranlib$(EXEEXT)
14
15 all: $(TARGET)
16
17 install: all installdirs
18         $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/asranlib$(EXEEXT)|sed '$(transform)'`
19         $(STRIP) `echo $(DESTDIR)$(bindir)/asranlib$(EXEEXT)|sed '$(transform)'`
20
21 # Deleting all the installed files
22 # --------------------------------
23 uninstall:
24         rm -f $(DESTDIR)$(bindir)/asranlib$(EXEEXT)
25
26 # Performing self-test
27 # --------------------
28 check:
29
30
31 # Performing installation test
32 # ----------------------------
33 installcheck:
34
35
36 # Creating installation directories
37 # ---------------------------------
38 installdirs:
39         $(INSTALL) -d $(DESTDIR)$(bindir)
40
41
42 # Creating dependencies
43 # ---------------------
44 dep:
45
46 $(TARGET): $(OBJECTS) dbuf.o dbuf_string.o
47         $(CC) $(LDFLAGS) -o $@ $(OBJECTS) dbuf.o dbuf_string.o
48
49 dbuf.o: $(srcdir)/../../support/Util/dbuf.c
50         $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
51
52 dbuf_string.o: $(srcdir)/../../support/Util/dbuf_string.c
53         $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
54
55 .c.o:
56         $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
57
58
59 checkconf:
60
61 clean:
62         rm -f *core *[%~] *.[oa] *.output
63         rm -f .[a-z]*~ \#*
64         rm -f $(top_builddir)/bin/asranlib$(EXEEXT)
65
66 distclean realclean: clean
67         rm -f Makefile