3 top_builddir = @top_builddir@
5 include $(top_builddir)/Makefile.common
11 SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
13 TARGET = $(top_builddir)/bin/sdcclib$(EXEEXT)
17 install: all installdirs
18 $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/sdcclib$(EXEEXT)|sed '$(transform)'`
19 $(STRIP) `echo $(DESTDIR)$(bindir)/sdcclib$(EXEEXT)|sed '$(transform)'`
21 # Deleting all the installed files
22 # --------------------------------
24 rm -f $(DESTDIR)$(bindir)/sdcclib$(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 # ---------------------
47 $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
50 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
55 include $(srcdir)/clean.mk