home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / mpeg_stat-2.2 / Makefile < prev    next >
Encoding:
Makefile  |  1995-05-10  |  1.3 KB  |  48 lines

  1. # Makefile for building mpeg_stat
  2. #
  3. # Use gcc on suns; cc on HPs with flags below; gcc on HPs too....
  4. # Personally I recomend using gcc everywhere.
  5. #
  6.  
  7. CC            = icc -mem
  8.  
  9. # at present, no include directories needed
  10. # Except on our OSF3.0, where -I/usr/include is needed (why? I dont know).
  11. INCLUDEDIR          = 
  12.  
  13. # Either -g or -O (actually on some machines both is fine)
  14.  
  15. DEBUGFLAG          = -O
  16.  
  17. #       Use -DSIG_ONE_PARAM if the function passed to signal takes 
  18. #         one parameter (linux, Solaris )
  19. #         Do not use it if it takes none (SunOS, HPUX, OSF1 )
  20. #         It works either way, (i think), just gets rid of a warning.
  21.  
  22. CFLAGS                  =  -I/usr/include $(DEBUGFLAG) $(INCLUDEDIR)
  23.  
  24. # for SunOS cc, just use the above
  25. # for cc on HPUX:
  26. HP-CC-FLAGS          =  -Aa $(CFLAGS) -D_HPUX_SOURCE -DBSD -DNONANSI_INCLUDES
  27.  
  28. HDRS          = util.h video.h decoders.h fs2.h dither.h fs4.h
  29.  
  30. LD          = $(CC)
  31.  
  32. OBJS          = util.o main.o decoders.o video.o jrevdct.o parseblock.o \
  33.         motionvector.o filter.o readfile.o porting.o
  34.  
  35. PROGRAM       = mpeg_stat
  36.  
  37. SRCS          = util.c main.c decoders.c video.c jrevdct.c parseblock.c \
  38.         motionvector.c filter.c readfile.c porting.c
  39.  
  40. all:        $(PROGRAM)
  41.         strip $(PROGRAM)
  42.  
  43. $(PROGRAM):    $(OBJS)
  44.         $(LD) -g $(OBJS) $(LIBS) -lsocket -lm -o $(PROGRAM)
  45.  
  46. clean:;        @rm -f *.o core $(PROGRAM)
  47.  
  48.