CC=gcc SRCDIR=../../src CFLAGS_INTEL=-D_ATT_SYNTAX -I$(SRCDIR) CFLAGS=-g -fPIC -Wall -DLINUX -I$(SRCDIR) $(CFLAGS_PLATFORM) SOURCES= $(SRCDIR)/encore.c \ $(SRCDIR)/bitstream.c $(SRCDIR)/mom_access.c $(SRCDIR)/mom_util.c \ $(SRCDIR)/mot_code.c $(SRCDIR)/mot_est_comp.c $(SRCDIR)/mot_est_mb.c \ $(SRCDIR)/mot_util.c $(SRCDIR)/putvlc.c $(SRCDIR)/rate_ctl.c \ $(SRCDIR)/text_bits.c $(SRCDIR)/text_code.c $(SRCDIR)/text_code_mb.c \ $(SRCDIR)/text_dct.c $(SRCDIR)/vop_code.c OBJECTS=$(SOURCES:.c=.o) $(SOURCES_PLATFORM:.c=.o) all: libdivxencore.a libdivxencore.a: $(OBJECTS) ar cru $@ $^ ranlib $@ clean: rm -f libdivxencore.a $(OBJECTS) install: cp libdivxencore.a /usr/local/lib mkdir -p /usr/local/include/divx cp ../../src/encore.h /usr/local/include/divx