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 (47 lines) | stat: -rw-r--r-- 1,317 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
# Makefile for building mpeg_stat
#
# Should make just about anywhere...  If you have problems,
# check out porting.c first

CC            = gcc

# at present, no include directories needed
# Except on our OSF3.0, where -I/usr/include is needed (why? I dont know).
# On old SGIs (4.0.3 for example), add -cckr
INCLUDEDIR	      = 

# Either -g or -O (actually on some machines both is fine)

DEBUGFLAG	      = -O

#       Use -DSIG_ONE_PARAM if the function passed to signal takes 
#         one parameter (linux, Solaris, ultrix )
#         Do not use it if it takes none (SunOS, HPUX, OSF1 )
#         It works either way, just gets rid of a warning.

CFLAGS	              =  -I/usr/include $(DEBUGFLAG) $(INCLUDEDIR)

# for SunOS cc, just use the above
# for cc on HPUX:
HP-CC-FLAGS	      =  -Aa $(CFLAGS) -D_HPUX_SOURCE -DBSD -DNONANSI_INCLUDES

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

LD	      = $(CC)

OBJS          = util.o main.o decoders.o video.o jrevdct.o parseblock.o \
		motionvector.o filter.o readfile.o

PROGRAM       = mpeg_stat

SRCS	      = util.c main.c decoders.c video.c jrevdct.c parseblock.c \
		motionvector.c filter.c readfile.c

all:		$(PROGRAM)
		strip $(PROGRAM)

$(PROGRAM):	$(OBJS)
		$(LD) -g $(OBJS) $(LIBS) -lm -o $(PROGRAM)

clean:;		@rm -f *.o core $(PROGRAM)