#include "../Imake.options"

#ifndef PassCDebugFlags
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
#endif

DEFINES := $(DEFINES) $(XPMDEFINES) $(XSHAPEDEFINES)
LOCAL_LIBRARIES	:= -L./liblp -llp $(XPMLIB) $(LOCAL_LIBRARIES)

SRCS	= Main.c List.c Util.c Icon.c pipe.c
OBJS	= Main.o List.o Util.o Icon.o pipe.o ../DragAndDrop/DragAndDrop.o
DEPLIBS = liblp/liblp.a
BINDIR = $(OFFIX_BINDIR)

#define Subdirs liblp 

MakeSubdirs(Subdirs)
MakefileSubdirs(Subdirs)
CleanSubdirs(Subdirs)
DependSubdirs(Subdirs)
ComplexProgramTarget(printer)

install::
	chown root.lp $(BINDIR)/printer
	chmod 6511 $(BINDIR)/printer

InstallAppDefaults(Printer)
