diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-02 18:40:19 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-02 18:40:19 +0200 |
| commit | 89e787c826890aed88f632b1fd5cf4f65541067f (patch) | |
| tree | f509b54ec7a5c44471da7634972f4ef8822cf726 /manager/Makefile | |
| parent | 3fc5a341321c4c042bb464dbb1f62856fc2d31a4 (diff) | |
fix includes paths, etc
common, io, manager can be build now
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'manager/Makefile')
| -rw-r--r-- | manager/Makefile | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/manager/Makefile b/manager/Makefile index da7fd9b..28f7421 100644 --- a/manager/Makefile +++ b/manager/Makefile @@ -2,26 +2,36 @@ CC := $(CROSS_COMPILE)gcc CXX := $(CROSS_COMPILE)g++ LD := $(CROSS_COMPILE)g++ +DISTRIO_COMMON := ../common +DISTRIO_IO := ../io + +LDFLAGS += -L$(DISTRIO_COMMON) -ldistrio_common -L$(DISTRIO_IO) -ldistrio_io \ + -lACE -lTAO -lTAO_AnyTypeCode -lTAO_PortableServer +CFLAGS += -fPIC -I$(DISTRIO_COMMON) -I$(DISTRIO_IO) +CXXFLAGS += $(CFLAGS) + TAO_IDL := tao_idl DESTDIR := /usr -EXEC = distrio-manager -OBJ = managerC.o managerS.o manager.o -IDL_CLEANFILES = managerC.cpp managerC.h managerI.h managerS.cpp managerS.h \ - managerC.inl +COMPONENT = distrio_manager +EXEC = $(COMPONENT) +OBJ = $(COMPONENT)C.o $(COMPONENT)S.o $(COMPONENT).o +IDL_CLEANFILES = $(COMPONENT)C.cpp $(COMPONENT)C.h $(COMPONENT)I.h \ + $(COMPONENT)S.cpp $(COMPONENT)S.h $(COMPONENT)C.inl -all: idl $(OBJ) - $(LD) -o $(EXEC) $(OBJ) +all: $(OBJ) + $(LD) $(LDFLAGS) -o $(EXEC) $(OBJ) idl: - $(TAO_IDL) -GI -I../interfaces ../interfaces/manager.idl - rm -f managerI.cpp + $(TAO_IDL) -GI -I../interfaces ../interfaces/$(COMPONENT).idl + rm -f $(COMPONENT)I.cpp idl_clean: rm -f $(IDL_CLEANFILES) clean: idl_clean + rm *.o rm -f $(EXEC) install: all |
