# Makefile for ...cwp/main
# Just say "make"

include $(CWPROOT)/src/Makefile.config

LFLAGS = $(PRELFLAGS) -L$L -lcwp $(POSTLFLAGS)

PROGS =			\
	$B/ctrlstrip	\
	$B/conjtest	\
	$B/downfort	\
	$B/fcat		\
	$B/isatty	\
	$B/maxints	\
	$B/pause	\
	$B/t		\
	$B/upfort


INSTALL:	$(PROGS)
	@-rm -f INSTALL
	@touch $@

$(PROGS):	$(CTARGET)
	$(CC) $(CFLAGS) $(@F).c $(LFLAGS) -o $@
	$(MCHMODLINE)
	@echo $(@F) installed in $B
remake:
	@-rm -f $(PROGS) INSTALL
	@$(MAKE) INSTALL

clean	::
	rm -f *.o *.a junk*
