#***********************************************************************
#
#   (c) Copyright 1991 by Lotus Development Corporation
#	All Rights Reserved
#
#   MAKE file
#
#   Description:   Makes sample applications
#
#
#***********************************************************************

#  Change the next line to the path of the addin include files,
#  for example,  /exports/apps/lotus/123.v12/sun4sol2
123_SUN4 = ../..

#  Path of the addin include files.
ADDINS_INCL = $(123_SUN4)/addins/include

#  Path of core objects (for debugging)
CORE_OBJECTS = $(123_SUN4)/lib

CC = cc

# use the following line for dynamically loaded addin programs
CFLAGS = -c -DSTATIC_MODULE=0 -I$(ADDINS_INCL) -I.

ADDINS= newavg.ad1 fact.ad1 maccopy.ad1 amort.ad1 dow.ad1 insert.ad1 width.ad1 clip.ad1 clipbord.ad1 

# Change next line to include the add-in you want to debug
DEBUG_OBJECTS = amort.o 

# Define a default rule for making an ad1.
%.ad1: %.o
	ld -G -dy -o $@ $<


all: $(ADDINS)

amort.o: amort.c amort.h

clipbord.o: clipbord.c clipbord.h

clip.o: clip.c clip.h

123debug: $(DEBUG_OBJECTS)
	ld  -G -dy -e start -o $@ $(CORE_OBJECTS)/123.o \
		$(CORE_OBJECTS)/dl_init.o $(DEBUG_OBJECTS) -ldl -lc

clean:
	rm -f *.o

pristine: clean
	rm -f *.ad1




