# Rosetta-Lander, ROLIS: Downlooking camera
# makefile for Decoder core library

# You need an ANSI C compiler. gcc is a popular one.
CC= gcc

# Define TCL & TCLLIB on calling make 
#     make -DTCL=   -DTCLLIB=
#
# Cygwin has Tcl in /include and /lib
#
TCL=
TCLLIB= $(TCL)/lib

LIBS= -ltclstub84

# The target library to create
#
TARGET= decoder.so


WARN= -Wall
CFLAGS=  -O2 $(WARN) $(DEFS) -I$(TCL)/include
LFLAGS= -L$(TCLLIB) $(LIBS)

OBJS=	\
	bitstm.o \
	decoder.o \
	wave_linear.o \
	zerotree.o

SRCS=	\
	bitstm.c \
	decoder.c \
	wave_linear.c \
	zerotree.c \
	bitstm.h \
	defines.h \
	decoder.h \
	wave_linear.h \
	zerotree.h

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -shared -o $(TARGET) $(OBJS) $(LFLAGS) 

clean:
	rm -f $(OBJS) $(TARGET)


