#include "As.rules"

LOCAL_X_LIBDIR = -L/usr/lib

XMLIB    = -lXm 
XTOOLLIB = -lXt
XLIB     = -lX11

XVERSION = X11R5

XMULIB = -lXmu

SYS_LIBRARIES =  $(LOCAL_X_LIBDIR) $(XMLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)


Print_cmd = lpr <

Backup_file_suffix = .bak

BINDIR  = /usr/bin/X11
XAPPLOADDIR = /usr/lib/X11/app-defaults
MANDIR = /usr/man/mann
LIBDIR = /usr/lib/X11


Help_dir = ${LIBDIR}

      DEFINES = -D${XVERSION} $(No_proto_def) $(No_stdarg_def) $(No_maxpathlen_def) $(xfocus_bug)


#
#    END of customisation part of the Imakefile
#



      SRCS = asedit.c as_menuh.c file_rw.c clipbrd.c \
	     write_lw.c find_position.c asutil.c undo.c ht_help.c

      OBJS = asedit.o as_menuh.o file_rw.o clipbrd.o \
	     write_lw.o find_position.o asutil.o undo.o ht_help.o




#   asedit dependencies .....

asedit.o  :	asedit.h clipbrd.h asedit_icon Asedit.ad.h

as_menuh.o:	asedit.h

asutil.o  :	asedit_icon

clipbrd.o :	clipbrd.h



#
#   A rule to convert the X resource file into C declarations,
#   appropriate for inclusion as fallback resources.
#   The following rule ensures that asedit always has the latest version of its
#   resources compiled into the executable.
#

Asedit.ad.h:    ${XVERSION}.ad Imakefile
	./ad2c.script ${XVERSION}.ad > Asedit.ad.h

NormalLibraryObjectRule()
SpecialObjectRule(asedit.o,Imakefile,${STRING_INC} '-DPRINT_CMD="${Print_cmd}"')
SpecialObjectRule(ht_help.o,Imakefile,-DHELPDIR=\"${Help_dir}\")
SpecialObjectRule(file_rw.o,Imakefile,-DBACKUP_FILE_SUFFIX=\"${Backup_file_suffix}\")

ComplexProgramTarget(asedit)
AllTarget(asedit)

#
#   Install the application default file (version related!)
#
InstallAppDefaultsLong($(XVERSION),Asedit)

#   Install the help file
InstallNonExec(asedit.hlp,${Help_dir})


#   That's it !



