CC:=		gcc
CFLAGS:=	-O #SUN -msoft-float
PRINT:=		enscript

MAINTOPS:=	all clean print s-files
.PHONY:		$(MAINTOPS)

ifdef PRINTFILES
print:
	$(PRINT) $(PRINTFILES)
endif

ifdef LMAINTOPS
$(LMAINTOPS):	%:	%-local

.PHONY:		$(addsuffix -local,$(LMAINTOPS))
endif

ifneq ($(origin SUBDIRS),file)
SUBDIRS:=
endif

ifdef SUBDIRS
$(MAINTOPS):
	for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
else
$(MAINTOPS):
endif

ifdef SUBDIRS
$(SUBDIRS):
	$(MAKE) -C $@
endif

ifneq ($(origin S_FILES),file)
S_FILES:=
endif

s-files:	$(S_FILES)

%.s:	%.c
	$(CC) -S $(CFLAGS) $^
