1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
# Makefile template for libsidplay.
version = 1.36.28
majorversion = 1.36
SHELL = /bin/sh
BASEDIR = @srcdir@
SRCDIR = $(BASEDIR)
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
includedest = $(includedir)/sidplay
DOCDIR = $prefix/doc
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
LN = @LN_S@
RM = @RM@
AR = @AR@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/emu -I$(SRCDIR)/include
LIBM = @LIBM@
LIBIOS = @LIBIOS@
LIBS = @LIBS@ $(LIBM) $(LIBIOS)
#--------------------------------------------------------------
srcdirs = . emu fformat include
sources = emu/6510_.cpp emu/6581_.cpp emu/envelope.cpp emu/mixing.cpp emu/samples.cpp \
fformat/fformat_.cpp fformat/info_.cpp fformat/mus_.cpp fformat/pp_.cpp \
fformat/psid_.cpp fformat/sid_.cpp \
eeconfig.cpp player.cpp sidtune.cpp
srcobjs = emu/6510_.o emu/6581_.o emu/envelope.o emu/mixing.o emu/samples.o \
fformat/fformat_.o fformat/info_.o fformat/mus_.o fformat/pp_.o \
fformat/psid_.o fformat/sid_.o \
eeconfig.o player.o sidtune.o
install_headers = include/compconf.h include/config.h include/emucfg.h \
include/fformat.h include/myendian.h include/mytypes.h \
include/player.h include/sidtune.h include/version.h \
include/fixpoint.h
.EXPORT_ALL_VARIABLES:
.SUFFIXES:
.SUFFIXES: .cpp .h .o
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFS) -c $< -o $@
.PHONY: all
all: engine libsidplay.a
engine: $(srcobjs)
libsidplay.a: $(srcobjs)
$(RM) -f libsidplay.a
$(AR) crv libsidplay.a $(srcobjs)
$(RANLIB) libsidplay.a
libsidplay.so: $(srcobjs)
$(CXX) -shared -Wl,-soname,libsidplay.so.$(majorversion) \
-o libsidplay.so $(srcobjs)
.PHONY: clean
clean:
@for subdir in $(srcdirs); do \
(cd $$subdir && $(RM) -f *.d *.o *~ *.a *.so) || exit 1; \
done
.PHONY: distclean
distclean:
$(MAKE) clean
-rm -f Makefile
.PHONY: depend
depend:
@MAKEDEP@ $(INCLUDES) $(sources) 2> /dev/null
.PHONY: install
install: install-headers install-static
install-static:
$(INSTALL) -d -m 755 $(libdir)
$(INSTALL_DATA) libsidplay.a $(libdir)/libsidplay.a
install-headers:
$(RM) -f $(includedest)/*
$(INSTALL) -d -m 755 $(includedest)
for file in $(install_headers); do \
($(INSTALL_DATA) $$file $(includedest) ) || exit 1; \
done
install-shared:
$(INSTALL) -d -m 755 $(libdir)
$(INSTALL_DATA) libsidplay.so $(libdir)/libsidplay.so.$(version)
$(RM) -f $(libdir)/libsidplay.so.$(majorversion)
$(RM) -f $(libdir)/libsidplay.so
$(LN) -sfv libsidplay.so.$(version) $(libdir)/libsidplay.so.$(majorversion)
$(LN) -sfv libsidplay.so.$(version) $(libdir)/libsidplay.so
#--------------------------------------------------------------
# DO NOT DELETE THIS LINE -- make depend depends on it.
|