# Makefile for the DMX-Device created by Michael Stickel
# (C)1997-2002 by Michael Stickel
#
# author: Michael Stickel
# email:  michael@cubic.org

include ../config.mk

TARGETS=	pingdmx setdmx dmxinfo dmxdump

all:	$(TARGETS)
	$(MAKE) -C htmlexamples $@

pingdmx:	pingdmx.o
	$(CC) $(LDFLAGS) -o $@ $^ -ldmx
	$(STRIP) $@

setdmx:	setdmx.o
	$(CC) $(LDFLAGS) -o $@ $^ -ldmx
	$(STRIP) $@

dmxinfo : dmxinfo.o
	$(CC) $(LDFLAGS) -o $@ $^ -ldmx
	$(STRIP) $@

dmxdump : dmxdump.o
	$(CC) $(LDFLAGS) -o $@ $^ -ldmx
	strip $@

clean :
	rm -f $(TARGETS) *.o
	$(MAKE) -C htmlexamples $@

distclean: clean uninstall

uninstall:
	cd $(BININSTALLPATH) && rm -f $(TARGETS)
	$(MAKE) -C htmlexamples $@

install:
#	cd htmlexamples; $(MAKE) $@
#	install -m 755 $(TARGETS) $(BININSTALLPATH)
