File: Makefile

package info (click to toggle)
ucbmpeg 1r2-6
  • links: PTS
  • area: non-free
  • in suites: hamm, potato, slink
  • size: 9,504 kB
  • ctags: 7,643
  • sloc: ansic: 79,920; tcl: 2,985; perl: 313; asm: 284; makefile: 269; csh: 13
file content (104 lines) | stat: -rw-r--r-- 2,862 bytes parent folder | download
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
# Step 1:
#	Set CC to the C compiler you want to use.  On Sun, gcc 
#	produces faster code.  Your mileage may vary.
CC            = gcc
# CC            = cc -g

# Step 2:
#	Set INCLUDEDIR equal to -I followed by include directory
#	path for X11 include files. 

INCLUDEDIR    = -I/usr/include

#
# Step 3:
#	Set CFLAGS.  Be sure to change the definition of "SHOW_TCL" to point
#       to the location of show.tcl.
#       Use -DSIG_ONE_PARAM if the function passed to signal takes 
#         one parameter (linux, Solaris)
#         Do not use it if it takes none (SunOS, HPUX, Ultrix, OSF1, )
#         It works either way, (i think), just gets rid of a warning.
#
#        
#
CFLAGS	      =  $(INCLUDEDIR) -DBITS_DIR=\".\" -O
#CFLAGS	      =  $(INCLUDEDIR) -DBITS_DIR=\"/usr/local/etc/mpeg_bits\" -O

#
# Step 4:
#	Set LIBS equal to path of libXext.a and libX11.a or the loader
#	flag equivalents (i.e. -lXext -lX11).  Also include tcl/tk 
#       libraries.
#       If you are NOT using shared memory, libXext.a is unecessary.
#       NOTE: below the default definition are
#             a few definitions for specific architectures.
LIBS = -L/usr/local/lib -L/usr/X11/lib -ltk -ltcl -lXext -lX11 

#
# Step 5:
#	Set DEST to pathname of final destination of mpeg_bits...
#
DEST	      = ~/bin

#
# That's it!  The rest of this shouldn't need any modifications...
#

OBJS = show.o util.o video2.o parseblock.o motionvector.o decoders.o \
              	fs2.o fs2fast.o fs4.o hybrid.o hybriderr.o 2x2.o \
		gdith2.o gray.o mono.o playframe2.o jrevdct.o 24bit.o util32.o \
		ordered.o ordered2.o mb_ordered.o monofs4.o halftone.o rgbl.o \
		big_ordered.o 2x2slow.o

HDRS	      = util.h video.h decoders.h fs2.h dither.h fs4.h

INSTALL	      = /etc/install

LD	      = $(CC) 

LDFLAGS	      = 

MAKEFILE      = Makefile

PRINT	      = pr

PROGRAM       = mpeg_bits

SHELL	      = /bin/sh

SRCS	      = show.c util.c video2.c parseblock.c motionvector.c decoders.c \
              	fs2.c fs2fast.c fs4.c hybrid.c hybriderr.c 2x2.c \
		gdith2.c gray.c mono.c playframe2.c jrevdct.c 24bit.c util32.c \
		ordered.c ordered2.c mb_ordered.c monofs4.c halftone.c rgbl.c \
		big_ordered.c 2x2slow.c

SYSHDRS	      = 

all:		$(PROGRAM)

$(PROGRAM):	$(OBJS)
		$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -lm -o mpeg_bits

clean:;		@rm -f *.o core mpeg_bits
 
clobber:;	@rm -f $(OBJS) $(PROGRAM) core tags

depend:;	makedepend -- $(CFLAGS) $(LIBS)-- $(SRCS)

echo:;		@echo $(HDRS) $(SRCS)

index:;		@ctags -wx $(HDRS) $(SRCS)

install:	$(PROGRAM)
		@echo Installing $(PROGRAM) in $(DEST)
		@-strip $(PROGRAM)
		@if [ $(DEST) != . ]; then \
		(rm -f $(DEST)/$(PROGRAM); $(INSTALL) -f $(DEST) $(PROGRAM)); fi

print:;		@$(PRINT) $(HDRS) $(SRCS)

tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)

update:		$(DEST)/$(PROGRAM)

# DO NOT DELETE THIS LINE -- make depend depends on it.