##
## Makefile
## adapted from the generic legOS Makefile template
##

# name for the legOS kernel
KERNEL=../boot/legOS

PROGRAMS=rotation.lx sound.lx trailerbot.lx
# extra dynamic sources
DOBJECTS=

all: $(PROGRAMS)

include ../Makefile.common
include ../Makefile.user

# doc/html subdirectory
html:
	doxygen Doxyfile

depend:
	$(MAKEDEPEND) *.c > .depend

.depend:
	$(MAKEDEPEND) *.c > .depend

tag:
	ctags --format=1 *.c include/*.h include/*/*.h *.c

clean:
	rm -rf .depend* *.o *.dis *.dis2 *~ *.bak *.tgz *.s tags *.ds1 *.ds2 *.dmap *.dcoff *.srec *.map *.coff

realclean: clean
	rm -f *.lx

# depencencies
#
ifndef NODEPS
include .depend
endif
