diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-03 20:12:26 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-03 20:12:26 +0200 |
| commit | f79ee1d59423488c3de89e97e3648515a9143b36 (patch) | |
| tree | 93e4922283a5d03c1c559f48970317b8f50056f1 /devices/simple_dev/Makefile | |
| parent | 796c97ef8d5a437fff1edb5679b82db49806e576 (diff) | |
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 <manut@mecka.net>
Diffstat (limited to 'devices/simple_dev/Makefile')
| -rw-r--r-- | devices/simple_dev/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
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 |
