Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | # Generated automatically from Makefile.in by configure. |
2 | # |
||
3 | # Makefile.in for the MPEG Library -- this has to be processed by |
||
4 | # `configure' to be meaningful! |
||
5 | # |
||
6 | |||
7 | |||
8 | # Various programs and their options |
||
9 | |||
10 | CC = gcc |
||
11 | #OPT = -nostdinc -O6 -finline-functions -fno-builtin |
||
12 | OPT = -Wall -nostdinc -O -finline-functions -fno-builtin |
||
13 | OPT = -Wall -O -finline-functions -fno-builtin |
||
14 | HARTIK = ../../hartik |
||
15 | LIB_PATH = $(HARTIK)/lib |
||
16 | DEFS = -DHAVE_CONFIG_H -D__LINUX__ -DNOCONTROLS |
||
17 | INCLUDES = -I. |
||
18 | INCLUDES = -I. -I$(HARTIK)/drivers/linuxcom/include -I$(HARTIK)/h/x86 -I$(HARTIK)/h -I$(HARTIK)/h/sys |
||
19 | CFLAGS = $(OPT) $(DEFS) $(INCLUDES) |
||
20 | AR = ar |
||
21 | #ARFLAGS = ru |
||
22 | ARFLAGS = rs |
||
23 | #RANLIB = ranlib |
||
24 | #SHELL = /bin/sh |
||
25 | |||
26 | |||
27 | LIBNAME = mpg |
||
28 | |||
29 | # Source for the library itself -- note that we define LIBSRC and |
||
30 | # LIBOBJ this way (instead of just LIBOBJ=$(LIBSRC:.c=.o) because |
||
31 | # HP-UX make is stupid. |
||
32 | |||
33 | DECODER_SRC = util.c video.c parseblock.c motionvector.c decoders.c \ |
||
34 | jrevdct.c wrapper.c gdith.c gdithMNI.c readfile.c 16bit.c |
||
35 | DITHER_SRC = fs2.c fs2fast.c fs4.c hybrid.c hybriderr.c 2x2.c gray.c \ |
||
36 | mono.c ordered.c ordered2.c mb_ordered.c |
||
37 | LIBSRC = $(DECODER_SRC) $(DITHER_SRC) |
||
38 | LIBOBJ = $(DECODER_SRC:.c=.o) $(DITHER_SRC:.c=.o) |
||
39 | |||
40 | |||
41 | # Other files of interest |
||
42 | |||
43 | LIBRARY = libmpeg.a |
||
44 | MPEGTEST = mpegtest |
||
45 | |||
46 | # Targets for all platforms |
||
47 | |||
48 | #all: $(LIBRARY) mpegtest |
||
49 | all: $(LIBRARY) |
||
50 | |||
51 | $(LIBRARY): $(LIBOBJ) |
||
52 | $(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ) |
||
53 | # $(RANLIB) $(LIBRARY) |
||
54 | |||
55 | #$(LIBOBJ): Makefile |
||
56 | |||
57 | |||
58 | # Makefile fragment to compile stuff in extras/ (regardless of |
||
59 | # whether it can be built or not -- that's decided in the main |
||
60 | # Makefile) |
||
61 | |||
62 | mpegtest: extras/mpegtest libmpeg.a |
||
63 | rm -f mpegtest |
||
64 | ln -s extras/mpegtest . |
||
65 | |||
66 | extras/mpegtest:extras |
||
67 | (cd extras ; $(MAKE) mpegtest) |
||
68 | |||
69 | easympeg: extras/easympeg libmpeg.a |
||
70 | rm -f easympeg |
||
71 | ln -s extras/easympeg . |
||
72 | |||
73 | extras/easympeg:extras |
||
74 | (cd extras ; $(MAKE) easympeg) |
||
75 | |||
76 | check: mpegtest |
||
77 | ./mpegtest -checksum test.mpg |
||
78 | |||
79 | clean: |
||
80 | rm -f $(LIBRARY) mpegtest core $(LIBOBJ) |
||
81 | (cd extras ; $(MAKE) clean) |
||
82 | |||
83 | distclean: clean |
||
84 | rm -f config.cache config.log config.status Makefile config.h |
||
85 | cd extras && $(MAKE) distclean |
||
86 | |||
87 | # Include a system-specific Makefile fragment, if any |
||
88 | |||
89 |