You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2KB

  1. # Makefile for libsndins.so
  2. prefix = @prefix@
  3. srcdir = @srcdir@
  4. libdir = $(prefix)/lib
  5. top_builddir = ..
  6. top_srcdir = @top_srcdir@
  7. VPATH = @srcdir@
  8. includedir = @includedir@
  9. SHELL = @SHELL@
  10. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  11. CC = @CC@
  12. DEFS = -DUSE_SND=0 @DEFS@
  13. LDFLAGS = @LDFLAGS@
  14. CFLAGS = @CFLAGS@ -fPIC @XEN_CFLAGS@ @GSL_CFLAGS@
  15. LIBS = @LIBS@ @XEN_LIBS@ @GSL_LIBS@
  16. INSTALL = @INSTALL@
  17. SO_INSTALL = @SO_INSTALL@
  18. SO_LD = @SO_LD@
  19. A_LD = ar
  20. A_LD_FLAGS = cr
  21. LD_FLAGS = @LD_FLAGS@
  22. LDSO_FLAGS = @LDSO_FLAGS@
  23. OBJS = sndins.o $(top_builddir)/sndlib.a
  24. SO_TARGET = libsndins.so
  25. A_TARGET = libsndins.a
  26. LIB_TARGET = sndins.so
  27. .c.o:
  28. $(CC) -c $(DEFS) $(CFLAGS) -I$(top_builddir) -I$(top_srcdir) $<
  29. sndins: $(OBJS)
  30. $(SO_LD) $(LDSO_FLAGS) $(LDFLAGS) -o $(SO_TARGET) $(OBJS) $(LIBS)
  31. $(A_LD) $(A_LD_FLAGS) $(A_TARGET) $(OBJS)
  32. ranlib $(A_TARGET)
  33. cp $(SO_TARGET) $(LIB_TARGET)
  34. install: sndins
  35. $(mkinstalldirs) $(libdir)
  36. $(mkinstalldirs) $(includedir)
  37. $(INSTALL) $(A_TARGET) $(libdir)/$(A_TARGET)
  38. $(SO_INSTALL) $(SO_TARGET) $(libdir)/$(SO_TARGET)
  39. uninstall:
  40. rm -f $(libdir)/$(A_TARGET)
  41. rm -f $(libdir)/$(SO_TARGET)
  42. clean:
  43. rm -f *.so *.a *.o *.core core
  44. distclean: clean
  45. rm -f Makefile *~
  46. # Makefile ends here