# Generated automatically from Makefile.in by configure.
###############################################################################
#                                                                             #
# To build the OggSquish player application, just type 'make'.                #
# To build with debugging or profiling information, use 'make debug' or       #
# 'make profile' respectively.  'make clean' is a good idea between builds    #
# with different target names, or before a final build.                       #
#                                                                             #
###############################################################################

# DO NOT EDIT! ################################################################
# (unless, of course, you know what you are doing :) ##########################


FLAGS= -Dsize16='short' -Dsize32='int' -Dsize64='long long' -I/usr/X11R6/include
OPT=-O20 -ffast-math -fsigned-char -fomit-frame-pointer -finline-functions -m486 -malign-functions=4 $(FLAGS)
DEBUG=-g -Wall -fsigned-char -m486 -malign-functions=4 $(FLAGS)
PROFILE=-pg -g -O20 -fsigned-char -fomit-frame-pointer -finline-functions -m486 -malign-functions=4 $(FLAGS)
CC=gcc
LD=gcc
LDFLAGS= -L/usr/X11R6/lib $(FLAGS)
AR=ar
RANLIB=ranlib
LIBS=


OFILES = ldkludge.o xogg.o xsplash.o xmergable.o twirl.o

REMOTEOFILES = ../cmdline/cmdparse.o ../cmdline/header.o ../cmdline/oggstuff.o\
	../cmdline/mainloop.o ../cmdline/appio.o ../cmdline/setup.o 

all: 	
	$(MAKE) target CFLAGS="$(OPT)" 
	strip xogg

debug:  
	$(MAKE) target CFLAGS="$(DEBUG)"

profile:
	$(MAKE) target CFLAGS="$(PROFILE)"

target:	$(OFILES) 
	cd Xow && $(MAKE) target CFLAGS="$(CFLAGS)" 
	$(LD) $(CFLAGS) $(OFILES) $(REMOTEOFILES) $(LDFLAGS) \
	../libogg/libogg.a /afs/sipb/project/xfree86/arch/i386_linux2/X11R6/lib/libX11.so  Xow/Xow.a -o xogg $(LIBS) -lm -lX11 -lXt -lXmu 

.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
	-rm -f *.o xogg *~


