#include "../../config/crossfire.tmpl"
#define CrossEdit

#include "../config.h"

/*** files ***/
SRCS =	test.c		CnvUtil.c	CnvBrowse.c	CnvNotify.c \
	CnvMenu.c	CnvFiles.c	CnvPath.c	CnvPrompt.c 

OBJS =	CnvUtil.o	CnvBrowse.o	CnvNotify.o	CnvMenu.o \
	CnvFiles.o	CnvPath.o	CnvPrompt.o	

HDRS =	Cnv.h		config.h

FILES =	excloff.xbm	exclon.xbm	flagoff.xbm	flagon.xbm \
	notify.xbm	prompt.xbm	submenu.xbm	Imakefile \
	README

/*** options ***/
CDEBUGFLAGS = -DDEBUG -g
EXTRA_INCLUDES = -I. -I../include -I../../include
LOCAL_LIBRARIES = XawClientLibs $(DLSYM)

/*** machines ***/
#ifndef CrossEdit

#ifdef SunArchitecture
CC = gcc -ansi -Wall -Wno-implicit
#endif

#ifdef HPArchitecture
CC = cc 			       /* cc on HP-UX, use xmkmf.ansi  */
CCOPTIONS = -Aa -D_HPUX_SOURCE /* cpp.ansi barfs on -Wp,200000 */
#endif

#endif

/***  rules ***/

AllTarget(test)

DependTarget()

NormalLibraryTarget(Cnv,$(OBJS))

NormalProgramTarget(test ,test.o $(OBJS) $(DLSYM),libCnv.a,XawClientLibs,NullParameter)

NormalProgramTarget(menu2 ,menu2.o $(OBJS),libCnv.a,XawClientLibs,NullParameter)

#ifdef CrossEdit
InsertArchive($(SRCS) $(HDRS) $(FILES),crossedit/Cnv)

patchlist::
	@echo $(SRCS) $(HDRS) $(FILES) > .patchlist

#endif

/*** end of Imakefile ***/

