# OpenDivX encoder LIBNAME = libencore.a include ../config.mak SRCS = encore.c mom_access.c bitstream.c mom_util.c mot_code.c mot_est_comp.c mot_est_mb.c mot_util.c putvlc.c rc_hist.c rc_q2.c rgb2yuv.c text_bits.c text_code.c text_code_mb.c text_dct.c vop_code.c OBJS = encore.o mom_access.o bitstream.o mom_util.o mot_code.o mot_est_comp.o mot_est_mb.o mot_util.o putvlc.o rc_hist.o rc_q2.o rgb2yuv.o text_bits.o text_code.o text_code_mb.o text_dct.o vop_code.o CFLAGS = $(OPTFLAGS) INCLUDE = -I. .SUFFIXES: .c .o # .PHONY: all clean .c.o: $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $< $(LIBNAME): .depend $(OBJS) $(AR) r $(LIBNAME) $(OBJS) all: $(LIBNAME) clean: rm -f *.o *.a *~ distclean: rm -f Makefile.bak *.o *.a *~ .depend dep: depend depend: .depend .depend: Makefile ../config.mak ../config.h makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null # # include dependency files if they exist # ifneq ($(wildcard .depend),) include .depend endif