#/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
#/* This Header is built automatically. Do not change.               */
#/* $Id: makefile,v 1.4 2000/04/17 01:29:33 raap Exp $ */
#/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/


# Makefile for c't puzzle fr gcc  (icc siehe unten bei main)

# Flags for GNU C
# -S : generate only .s files
# -c : do NOT link
# -q : run quietly
# -o : specify output filename
# -v : be verbose
# -funsigned-char : char are unsigned by default
# -fverbose-asm : make asm-output more readable
# -fvolatile :
# -msmall-code :
# -Wall : give all useful warnings
# -g : generate debug hunks
# -pg : generate profiling information

CFLAGS =  -g -funsigned-char -Wall

# --- Optimizing flags ---
OF = -O6 -march=i686


# Flags for GNU C used when linking
# -q : run quietly
# -o : specify output filename
# -nostdlib : No standard libs
# -lXX : use LibXX.a
LFLAGS = 


.c.s:
	gcc -S $(CFLAGS) $(OF) -fverbose-asm $*.c

.c.o:
	gcc -c $(CFLAGS) $(OF) $*.c


	
# All source files to be checked in
SOURCES = main.c 
          
# All object files needed to link main program:
OBJS = main.o 

# ------------- [ Library ] object files ----------------

# ------------- Include File Dependencies --------------------


# ------------- The executable programs ---------
main: $(OBJS) 
	gcc $(CFLAGS) $(OF) -o main $(OBJS)
	
# If you want to use Intels icc, use this line
#	icc -O3 -tpp6 -axK -prof_use -o main main.c
	
# -----------------------------------------------

# Run RCSCLEAN on all source files and show the result
# Delete all .o and .dbg files
clean:
	rcsclean $(SOURCES)
	rm -f *.o
	rm -f *.dbg
	rm -f gmon.out
	


# Check out all source files
checkout:
	co  $(SOURCES)

checkin:
	ci $(SOURCES)




