CC = gcc
LDFLAGS = -lpsqlmif
CFLAGS = -I../../intf/c

ifeq ($(OS),64)
LDFLAGS += -L$(PVSW_ROOT)/lib64
CFLAGS += -DBTI_LINUX_64
else
LDFLAGS += -L$(PVSW_ROOT)/lib
CFLAGS += -DBTI_LINUX
endif

EXECS = btrsamp loginapi
OBJS = btrsamp.o loginapi.o

default:
	@echo --------------------------------------------------------
	@echo  Pervasive Software
	@echo  Btrieve samples
	@echo 
	@echo  Type \"make all\" to make all executables.
	@echo  Type \"make clean\" to remove object files.
	@echo  Type \"make cleanall\" to remove all non-source files.
	@echo  Append \"OS=64\" to compile 64-bit sample applications
	@echo --------------------------------------------------------

all: $(EXECS)

btrsamp: 
loginapi:

clean: 
	rm -f $(OBJS)

cleanall:
	rm -f $(OBJS) $(EXECS)
