Mercurial > mplayer.hg
view Gui/Makefile @ 7335:8db0cba91b6c
When we're compiling/running on a kernel without sse/sse2 support, we have
to be careful when using gcc-3.x. gcc-3.x is able to emit sse/sse2
instructions for normal C code when we compile for maximum performance with
something like the -march=athlon-xp switch.
So, if the kernel does not support the sse/sse2 instruction set extension,
we have to tell gcc-3.x to not emit see/sse2 instructions for regular C code,
otherwise mplayer might crash with a SIGILL signal.
author | jkeil |
---|---|
date | Mon, 09 Sep 2002 19:01:34 +0000 |
parents | 634d93c68912 |
children | e5dda05f9aab |
line wrap: on
line source
LIB = libgui.a include ../config.mak include config.mak INCDIR = -I. -I../loader -I./wm -I./skin $(GTKINC) $(EXTRA_INC) $(FREETYPE_INC) OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \ -fexpensive-optimizations -fschedule-insns2 -Wall ifeq ($(TARGET_ARCH_X86),yes) OPTIMIZE += -malign-double endif CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG) SRCS = wm/ws.c wm/wsxdnd.c app.c events.c interface.c cfg.c \ bitmap/bitmap.c bitmap/png/png.c \ skin/skin.c skin/font.c skin/cut.c \ mplayer/mplayer.c mplayer/widgets.c mplayer/play.c \ mplayer/gtk/menu.c mplayer/gtk/mb.c mplayer/gtk/about.c mplayer/gtk/pl.c mplayer/gtk/sb.c mplayer/gtk/fs.c mplayer/gtk/opts.c mplayer/gtk/url.c mplayer/gtk/eq.c OBJS = $(SRCS:.c=.o) .SUFFIXES: .c .o .c.o: $(CC) -c $(CFLAGS) -o $@ $< ### TARGETS ### $(LIB): .depend $(OBJS) rm -f $(LIB) $(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS) all: $(LIB) clean: rm -rf $(OBJS) *.o *~ *.bak main $(PRG) $(LIB) .depend #dep: depend # #depend: # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null # distclean: clean dep: depend depend: .depend .depend: Makefile config.mak $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend # # include dependency files if they exist # ifneq ($(wildcard .depend),) include .depend endif