# Extended Module Player Makefile.rules.in # $Id: Makefile.rules.in,v 1.69 2007/12/05 12:24:42 cmatsuoka Exp $ VERSION = 2.5.1 DATE = Fri Dec 7 09:58:06 BRST 2007 DESTDIR = prefix = @prefix@ exec_prefix = @prefix@ datarootdir = @datarootdir@ BINDIR = @bindir@ LIBDIR = @libdir@ MANDIR = @mandir@/man1 SYSCONFDIR = @sysconfdir@/xmp CC = @CC@ CFLAGS = -c @CFLAGS@ @DEFS@ @CINCS@ #-D_DEBUG LD = @CC@ LDFLAGS += -o $@ RANLIB = @RANLIB@ INSTALL = @INSTALL@ PLUGINS = @PLUGINS@ ifneq ($(PLUGINS),) PIC_OBJS = $(OBJS:.o=.lo) PIC_XOBJS = $(XOBJS:.o=.lo) PIC_LIB = $(LIB:.a=-pic.a) endif # IRIX 6.5.10 note by Johan Hattne # (Thu, 15 Feb 2001 20:20:38 +0100) # # I moved -laudio from just after -lXext to after -lm. It seems gcc # [2.95.2 as supplied by the freeware.sgi.com site] has problems # resolving the audio-symbols otherwise. LIBS = $(XLIBS) @LIBS@ SHELL = /bin/sh PLATFORM = @PLATFORM@ LIBM = @LIBM@ DRIVERS = @DRIVERS@ MIXER = @MIXER@ .SUFFIXES: .c .o .lo .a .S .so .c.o: $(CC) $(CFLAGS) $(XCFLAGS) -o $*.o $< .c.lo: $(CC) $(CFLAGS) -fPIC $(XCFLAGS) -o $*.lo $< .S.o: $(CC) $(CFLAGS) -o $*.o $< .lo.so: ld -shared -o $*.so $< dummy: $(LIB): $(LIB)($(OBJS) $(XOBJS)) $(PIC_LIB) $(RANLIB) $(LIB) $(PIC_LIB): $(PIC_LIB)($(PIC_OBJS) $(PIC_XOBJS)) $(RANLIB) $(PIC_LIB) depend: @echo Building dependencies... @$(CC) $(CFLAGS) $(XCFLAGS) -MM -MG $(OBJS:.o=.c) $(XDEPS:.o=.c) >$@ clean distclean:: rm -f *.o *.lo core errlist depend $(CFILES) ifdef DDIRS @for i in $(DDIRS); do \ if [ -d $$i ]; then \ (cd $$i && [ -f Makefile ] && $(MAKE) $@) \ fi \ done; true endif distclean:: rm -f $(DCFILES) install:: ifdef DDIRS @for i in $(DDIRS); do \ if [ -d $$i ]; then \ (cd $$i && [ -f Makefile ] && $(MAKE) $@) \ fi \ done; true endif subdist:: cp -dp $(DFILES) $(DISTDIR) ifdef DDIRS for i in $(DDIRS); do \ mkdir $(DISTDIR)/$$i; \ ( cd $$i; \ if [ -f Makefile ]; then \ $(MAKE) VERSION=$(VERSION) DISTDIR=../$(DISTDIR)/$$i \ subdist; \ else \ for j in *; do \ [ -f $$j ] && cp -dp $$j ../$(DISTDIR)/$$i; \ done; true; \ fi; ) \ done endif