annotate libmpeg2/Makefile @ 2890:1db780ee8117

hmm this is probably a better place for the check, as only the Intel stuff has to be overwritten.
author gabucino
date Wed, 14 Nov 2001 00:33:39 +0000
parents f6d2a4bc9bb5
children 0cdc1388f02f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 LIBNAME = libmpeg2.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 include ../config.mak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5
1680
f6d2a4bc9bb5 Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents: 1234
diff changeset
6 SRCS = header.c idct.c idct_mmx.c idct_mlib.c \
f6d2a4bc9bb5 Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents: 1234
diff changeset
7 motion_comp.c motion_comp_mmx.c motion_comp_mlib.c \
f6d2a4bc9bb5 Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents: 1234
diff changeset
8 slice.c stats.c decode.c
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 36
diff changeset
9 OBJS = $(SRCS:.c=.o)
1680
f6d2a4bc9bb5 Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents: 1234
diff changeset
10 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) $(MLIB_INC)
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
11 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 .c.o:
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
18 $(CC) -c $(CFLAGS) -o $@ $<
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
20 $(LIBNAME): $(OBJS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 $(AR) r $(LIBNAME) $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 all: $(LIBNAME)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 rm -f *.o *.a *~
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 distclean:
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
29 rm -f Makefile.bak *.o *.a *~ .depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
31 dep: depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
33 depend:
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 36
diff changeset
34 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
36 #
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
37 # include dependency files if they exist
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
38 #
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
39 ifneq ($(wildcard .depend),)
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
40 include .depend
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
41 endif