#####makefile for rapide compilation
##### see README

.SUFFIXES:
.SUFFIXES: .rpd

# Commands and flags
RAPIDEBIN 		= /usr/rapide/bin
RPDC			= $(RAPIDEBIN)/rpdc
PFLAGS			= -L -V
RM			= /bin/rm -f

default:
	@echo Type:
	@echo '    make <program_name>'
	@echo to make the executable program_name

.rpd:
	@$(MAKE) -s .rpdlib
	$(RPDC) $(PFLAGS) -o $* -M $* $*.rpd

.rpdlib:
	r.mklib

clean:
	@echo Cleaning your libraries for export
	@/bin/rm -rf .rpdlib 
	@/bin/rm -rf *~ 
	@/bin/rm -rf #*
	@/bin/rm -rf gas_station?
