Imported Upstream version 2.9.0
[debian/cc1111] / support / librarian / Makefile.in
1 VPATH        = @srcdir@
2 srcdir       = @srcdir@
3 top_builddir = @top_builddir@
4
5 include $(top_builddir)/Makefile.common
6
7 CFLAGS          += -Wall
8
9 OBJECTS         = sdcclib.o
10
11 SOURCES         = $(patsubst %.o,%.c,$(OBJECTS))
12
13 TARGET          = $(top_builddir)/bin/sdcclib$(EXEEXT)
14
15 all: $(TARGET)
16
17 install: all installdirs
18         $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/sdcclib$(EXEEXT)|sed '$(transform)'`
19         $(STRIP) `echo $(DESTDIR)$(bindir)/sdcclib$(EXEEXT)|sed '$(transform)'`
20
21 # Deleting all the installed files
22 # --------------------------------
23 uninstall:
24         rm -f $(DESTDIR)$(bindir)/sdcclib$(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)
47         $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
48
49 .c.o:
50         $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
51
52
53 checkconf:
54
55 include $(srcdir)/clean.mk