#############################################
#
# Makefile for distribution building utilies
#
# Yannis Chicha, April 2004
#
#############################################
#
#  2006/Dec/22
#
#  On Solaris, the value of PWD does not change when make is invoked
#  recursively.  Consequently, it is necessary to explicitly set it
#  at the start of the makefile.
#
PWD = $(shell pwd)

CC=unicl

EXT=

ifeq ($(MACHINE), win32gcc)
	EXT=.exe
endif

ifeq ($(MACHINE), win32msvc)
	EXT=.exe
endif

all:
	@echo "Usage:"
	@echo "   make licensing    => make licensing kit programs"

licensing:
	$(CC) -o add$(EXT) add.c

install:
	@(mkdir -p $(GENERIC_DIR)/utils/licensing_kit; \
	  cp add$(EXT) install-part1.txt install-part2.txt \
	     install-part3.txt license.txt createinstall.sh \
	     $(GENERIC_DIR)/utils/licensing_kit)
