File: Makefile.rules.in

package info (click to toggle)
xmp 2.0.4d-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,836 kB
  • ctags: 3,406
  • sloc: ansic: 23,689; sh: 2,617; makefile: 751
file content (102 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download | duplicates (2)
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
# Extended Module Player Makefile.rules.in
# $Id: Makefile.rules.in,v 1.19 2001/01/20 01:51:28 claudio Exp $

VERSION	= 2.0.4d
DATE	= Fri Jun 14 20:06:08 CEST 2002

DEST_DIR=
prefix	= $(DEST_DIR)@prefix@
exec_prefix= $(DEST_DIR)@prefix@
BIN_DIR	= @bindir@
LIB_DIR = @libdir@
MAN_DIR	= @mandir@/man1

CC	= @CC@
CFLAGS	= -c @CFLAGS@ @DEFS@ @CINCS@
LD	= @CC@
LDFLAGS	= -o$@ @LDFLAGS@
RANLIB	= @RANLIB@
INSTALL	= @INSTALL@
LIBS	= @LIBS@ $(XLIBS)
SHELL	= /bin/sh
PLATFORM= @PLATFORM@

DRIVERS	= @DRIVERS@
MIXER	= @MIXER@
PLUGIN	= @PLUGIN@
DYNDRV	= @DYNDRV@

X_INC	= @X_CFLAGS@
X_LIB	= @X_LIBS@ @X_EXTRA_LIBS@
X_XMP	= @X_XMP@

.SUFFIXES: .c .o .a .S .so

.c.o:
	$(CC) $(CFLAGS) $(XCFLAGS) -o $*.o $<

.S.o:
	$(CC) $(CFLAGS) -o $*.o $<

#.o.so:
#	$(CC) -shared -Wl,-init,_xmp_init -o $*.so $<

dummy:

$(LIB):  CFLAGS += -fPIC

$(LIB): $(LIB)($(OBJS) $(XOBJS))
	$(RANLIB) $(LIB)

depend:
	@echo Building dependencies...
	@$(CC) $(CFLAGS) $(XCFLAGS) -MM -MG $(OBJS:.o=.c) $(XDEPS:.o=.c) >$@

clean distclean::
	rm -f *.o *.so core errlist depend $(CFILES)
ifdef DDIRS
	@for i in $(DDIRS); do \
		(cd $$i; [ -f Makefile ] && $(MAKE) $@) \
	done; true
endif

distclean::
	rm -f $(DCFILES)

install::
ifdef DDIRS
	@for i in $(DDIRS); do \
		(cd $$i; [ -f Makefile ] && $(MAKE) $@) \
	done; true 
endif

whatsout::
	@rlog -R -L RCS/* | sed 's/.*\/\([^\/]*\),v/\1/'
ifdef DDIRS
	@for i in $(DDIRS); do \
		( cd $$i; \
		if [ -f Makefile ]; then \
			$(MAKE) whatsout; \
		else
			@rlog -R -L RCS/* | sed 's/.*\/\([^\/]*\),v/\1/'; \
		fi; ) \
	done
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; \
		fi; ) \
	done
endif