### Imakefile for xh-address  10/95


#########################################################
## uncomment the following define if you want to use xpm
## (colored main-button)

##define use_xpm


#ifdef use_xpm

XPM_DEF = -DXPM                             
XPM_LIB = -lXpm

#########################################################
### uncomment and edit the next 2 variables if xpm.h and
### libXpm is not located in the X11-tree

#XPMLIB_LOCATIN =   -L/usr/local/X11R5/lib       # location of libXpm.a
#XPMINCL_LOCATION = -I/usr/local/X11R5/include   # location of xpm.h

#endif

LOCAL_LIBRARIES = -L/usr/dt/lib $(XPMLIB_LOCATION) -lXm -lXt $(XPM_LIB) -lX11
EXTRA_INCLUDES  = -I/usr/dt/include $(XPMINCL_LOCATION)


SRCS = adr.cxx main.cxx xresources.cxx util.cxx callbacks.cxx shadow.cxx info.cxx
OBJS = adr.o main.o xresources.o util.o callbacks.o shadow.o info.o


########################################################
## set c++ compiler

CC=g++ -Wall -ansi
#CC=CC 

EXTRA_DEFINES = $(XPM_DEF) 

CDEBUGFLAGS = -O 
CCOPTIONS=

ComplexProgramTarget(xh-address)

########################################################
# ensure right treatment of *.cxx files

.SUFFIXES: .cxx $(SUFFIXES)

.cxx:
	$(LN.cxx) -o %@ $< $(LDLIBS)
.cxx.o:
	$(COMP.cxx) $<

COMP.cxx=$(CC) $(CFLAGS) -c
LN.cxx=$(CCC) $(CFLAGS)

