# Compile QBasic programs using the FreeBASIC compiler from
# http://freebasic.net/.

# FreeBASIC compiler.
FBC = fbc
# Be compatible with QBasic.
FBCFLAGS = -lang qb

PROGRAMS = \
	Fractal \
	ant2 \
	bamnit \
	bamstart \
	boom \
	bootcamp \
	box \
	col \
	dude \
	fire \
	firework \
	fonter \
	fractpix \
	golf \
	grapher \
	graphics \
	pong \
	quadratic \
	spaceman \
	stars \
	virus

# Programs that don't compile.
# caller	# COM(2).
# fontmake	# CALL ABSOLUTE.
# haze		# PLAY.
# ramismak	# CALL ABSOLUTE.
# sound		# SOUND.

all: $(PROGRAMS)

%: %.bas
	$(FBC) $(FBCFLAGS) $^

Fractal: Fractal.bas bmper.bas

stars: stars.bas bmper.bas

quadratic.bas: quadrati.c
	cp -f $< $@

clean:
	rm -f $(PROGRAMS)

.PHONY: all clean
.INTERMEDIATE: quadratic.bas
