From f79ee1d59423488c3de89e97e3648515a9143b36 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Sun, 3 Jun 2012 20:12:26 +0200 Subject: add simple_dev example - registers device at the manager - fixup manager to enable device registration - extend distrio_helper to support device registration Signed-off-by: Manuel Traut --- devices/simple_dev/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 devices/simple_dev/Makefile (limited to 'devices/simple_dev/Makefile') diff --git a/devices/simple_dev/Makefile b/devices/simple_dev/Makefile new file mode 100644 index 0000000..0d6e728 --- /dev/null +++ b/devices/simple_dev/Makefile @@ -0,0 +1,36 @@ +CC := $(CROSS_COMPILE)gcc +CXX := $(CROSS_COMPILE)g++ +LD := $(CROSS_COMPILE)g++ + +DISTRIO_MANAGER := ../../manager/lib +DISTRIO_COMMON := ../../common +DISTRIO_IO := ../../io + +LDFLAGS += -L$(DISTRIO_COMMON) -ldistrio_common \ + -L$(DISTRIO_IO) -ldistrio_io \ + -L$(DISTRIO_MANAGER) -ldistrio_manager \ + -lrt -lACE -lTAO -lTAO_AnyTypeCode -lTAO_CosNaming -lTAO_PortableServer +CFLAGS += -fPIC -I$(DISTRIO_COMMON) -I$(DISTRIO_IO) -I$(DISTRIO_MANAGER) +CXXFLAGS += $(CFLAGS) + +DESTDIR := /usr + +COMPONENT = distrio_simple_dev +EXEC = $(COMPONENT) +OBJ = simple_dev.o + +all: $(OBJ) + $(LD) $(LDFLAGS) -o $(EXEC) $(OBJ) + +clean: + rm -f *.o + rm -f $(EXEC) + +install: all + cp -a $(EXEC) $(DESTDIR)/bin + +uninstall: + rm -f $(DESTDIR)/bin/$(EXEC) + +idl: + /bin/true -- cgit v1.2.3