home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-05-10 | 1.3 KB | 48 lines |
- # Makefile for building mpeg_stat
- #
- # Use gcc on suns; cc on HPs with flags below; gcc on HPs too....
- # Personally I recomend using gcc everywhere.
- #
-
- CC = icc -mem
-
- # at present, no include directories needed
- # Except on our OSF3.0, where -I/usr/include is needed (why? I dont know).
- 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 )
- # Do not use it if it takes none (SunOS, HPUX, OSF1 )
- # It works either way, (i think), 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 porting.o
-
- PROGRAM = mpeg_stat
-
- SRCS = util.c main.c decoders.c video.c jrevdct.c parseblock.c \
- motionvector.c filter.c readfile.c porting.c
-
- all: $(PROGRAM)
- strip $(PROGRAM)
-
- $(PROGRAM): $(OBJS)
- $(LD) -g $(OBJS) $(LIBS) -lsocket -lm -o $(PROGRAM)
-
- clean:; @rm -f *.o core $(PROGRAM)
-
-