#

OPTIONS = -O4  -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 		# For usable binary
#OPTIONS = -O2 -g -p  -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4   	# For debugging
LINKOPT = -lm 
OBJECTS = transform.o gwic.o 2dheap.o pnm.o \
          conversions.o coder.o zerotree.o 

.suffixes: .c

.c.o:
	gcc -c $(OPTIONS) $<

# For normal build
default: gwic

# For cleaning un necessary files after build
clean: 
	del *.o

# For building gwic binaries
gwic:	$(OBJECTS)
	gcc -o gwic $(OPTIONS) $(OBJECTS) $(LINKOPT)
