updating for Slackware compile by Andrew
[goodguy/cinelerra.git] / cinelerra-5.1 / mpeg2enc / Makefile
index 80e0f8f939f3d38453287f81947fb8dfbcd4123a..ceac3cec3a44f1f3da7a9413a523b3c096f74c6f 100644 (file)
@@ -7,7 +7,7 @@ CC = gcc
 CFLAGS += -I$(TOPDIR)/libzmpeg3
 
 ifeq ($(OBJDIR), i686)
-CFLAGS += -DX86_CPU
+CFLAGS += -DX86_CPU -march=i686 -mcpu=i686 -fomit-frame-pointer
 NASMOBJ = \
        $(OBJDIR)/bdist1_mmx.o \
        $(OBJDIR)/bdist2_mmx.o \
@@ -56,6 +56,13 @@ OBJ = \
 LIBS := $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a
 LIBS += $(libraries)
 
+ifeq ($(WANT_CIN_3RDPARTY),no)
+LIBS += -la52
+endif
+ifeq ($(shell uname -o), Android)
+LIBS += jpt.a
+endif
+
 HVEG2LIB = $(OBJDIR)/hveg2enc.a
 HVEG2ENC = $(OBJDIR)/hveg2enc
 HVEG2ENC_G = $(OBJDIR)/hveg2enc_g