openbus.mak 3.71 KB
Newer Older
1 2 3
PROJNAME= luaopenbus
LIBNAME= $(PROJNAME)

4 5
SRC= \
  openbuslua.c \
6 7
  lecholib.c \
  lthreadlib.c \
8
  $(PRELOAD_DIR)/$(LIBNAME).c
9

10
OPENBUSSCSIDL= ${SCS_IDL1_2_HOME}/src
11
OPENBUSNEWIDL= ${OPENBUS_IDL2_1_HOME}/src
12
OPENBUSOLDIDL= ${OPENBUS_IDL2_0_HOME}/src
13
OPENBUSLIBIDL= ${SDK_IDL_SOURCE_HOME}/src
14

15
LUADIR= ../lua
16
LUASRC= \
17
  $(LUADIR)/openbus/assistant.lua \
18
  $(LUADIR)/openbus/assistant2.lua \
19 20 21 22
  $(LUADIR)/openbus/core/Access.lua \
  $(LUADIR)/openbus/core/idl/makeaux.lua \
  $(LUADIR)/openbus/core/idl/parsed.lua \
  $(LUADIR)/openbus/core/idl.lua \
23 24
  $(LUADIR)/openbus/core/legacy/idl.lua \
  $(LUADIR)/openbus/core/legacy/parsed.lua \
25
  $(LUADIR)/openbus/core/messages.lua \
26 27
  $(LUADIR)/openbus/idl/parsed.lua \
  $(LUADIR)/openbus/idl.lua \
28 29 30
  $(LUADIR)/openbus/util/argcheck.lua \
  $(LUADIR)/openbus/util/autotable.lua \
  $(LUADIR)/openbus/util/database.lua \
31
  $(LUADIR)/openbus/util/except.lua \
32 33 34
  $(LUADIR)/openbus/util/logger.lua \
  $(LUADIR)/openbus/util/messages.lua \
  $(LUADIR)/openbus/util/oo.lua \
35
  $(LUADIR)/openbus/util/sandbox.lua \
36 37 38
  $(LUADIR)/openbus/util/server.lua \
  $(LUADIR)/openbus/util/sysex.lua \
  $(LUADIR)/openbus/util/tickets.lua \
39
  $(LUADIR)/openbus.lua \
40 41
  lecholib.c \
  lthreadlib.c \
42 43
  $(LUADIR)/openbus/console/costdin.lua \
  $(LUADIR)/openbus/console/utils.lua
44

45 46
LIBIDL= $(OPENBUSLIBIDL)/openbus.idl

47 48
LIBDEPENDENTIDL= $(OPENBUSLIBIDL)/corba.idl

49
NEWIDL= \
50 51 52
  $(OPENBUSNEWIDL)/openbus_access-2.1.idl \
  $(OPENBUSNEWIDL)/openbus_offers-2.1.idl \
  $(OPENBUSNEWIDL)/openbus_export-2.1.idl
53

54
NEWDEPENDENTIDL= \
55 56
  $(OPENBUSNEWIDL)/openbus_core-2.1.idl \
  $(OPENBUSNEWIDL)/openbus_creden-2.1.idl \
57
  $(OPENBUSSCSIDL)/scs.idl 
58
  
59
OLDIDL= \
60
  $(OPENBUSNEWIDL)/openbus_legacy-2.1.idl \
61 62 63 64 65
  $(OPENBUSOLDIDL)/access_control.idl \
  $(OPENBUSOLDIDL)/offer_registry.idl \
  $(OPENBUSOLDIDL)/data_export.idl

OLDDEPENDENTIDL= \
66 67 68
  $(OPENBUSNEWIDL)/openbus_access-2.1.idl \
  $(OPENBUSNEWIDL)/openbus_core-2.1.idl \
  $(OPENBUSNEWIDL)/openbus_creden-2.1.idl \
69 70 71 72
  $(OPENBUSOLDIDL)/core.idl \
  $(OPENBUSOLDIDL)/credential.idl \
  $(OPENBUSSCSIDL)/scs.idl

73 74
LUAPRELOADFLAGS= -s

75 76
include ${OIL_HOME}/openbus/base.mak

77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
LIBS:= \
  luastruct \
  luasocket \
  luatuple \
  loop \
  luacothread \
  luaidl \
  oil \
  luavararg \
  lfs \
  luuid \
  lce \
  luasec \
  luascs

INCLUDES+= . \
  $(LUASTRUCT_HOME)/src \
  $(LUASOCKET_HOME)/include \
  $(LUATUPLE_HOME)/obj/$(TEC_UNAME) \
  $(LOOP_HOME)/obj/$(TEC_UNAME) \
  $(LUACOTHREAD_HOME)/obj/$(TEC_UNAME) \
  $(LUAIDL_HOME)/obj/$(TEC_UNAME) \
  $(OIL_HOME)/obj/$(TEC_UNAME) \
  $(LUAVARARG_HOME)/src \
  $(LUAFILESYSTEM_HOME)/include \
  $(LUUID_HOME)/include \
  $(LCE_HOME)/include \
  $(LUASEC_HOME)/include \
  $(SCS_LUA_HOME)/obj/$(TEC_UNAME)

LDIR+= \
  $(LUASTRUCT_HOME)/lib/$(TEC_UNAME) \
  $(LUASOCKET_HOME)/lib/$(TEC_UNAME) \
  $(LUATUPLE_HOME)/lib/$(TEC_UNAME) \
  $(LOOP_HOME)/lib/$(TEC_UNAME) \
  $(LUACOTHREAD_HOME)/lib/$(TEC_UNAME) \
  $(LUAIDL_HOME)/lib/$(TEC_UNAME) \
  $(OIL_HOME)/lib/$(TEC_UNAME) \
  $(LUAVARARG_HOME)/lib/$(TEC_UNAME) \
  $(LUAFILESYSTEM_HOME)/lib/$(TEC_UNAME) \
  $(LUUID_HOME)/lib/$(TEC_UNAME) \
  $(LCE_HOME)/lib/$(TEC_UNAME) \
  $(LUASEC_HOME)/lib/$(TEC_UNAME) \
  $(SCS_LUA_HOME)/lib/$(TEC_UNAME)

122
$(LUADIR)/openbus/idl/parsed.lua: $(IDL2LUA) $(LIBIDL) $(NEWIDL) $(NEWDEPENDENTIDL) $(LIBDEPENDENTIDL)
123
	$(OILBIN) $(IDL2LUA) -I $(OPENBUSSCSIDL) -I $(OPENBUSNEWIDL) -I $(OPENBUSLIBIDL) -o $@ $(LIBIDL)
124

125
$(LUADIR)/openbus/core/idl/parsed.lua: $(IDL2LUA) $(NEWIDL) $(NEWDEPENDENTIDL)
126
	$(OILBIN) $(IDL2LUA) -I $(OPENBUSSCSIDL) -I $(OPENBUSNEWIDL) -o $@ $(NEWIDL)
127 128

$(LUADIR)/openbus/core/legacy/parsed.lua: $(IDL2LUA) $(OLDIDL) $(OLDDEPENDENTIDL)
129
	$(OILBIN) $(IDL2LUA) -I $(OPENBUSSCSIDL) -I $(OPENBUSOLDIDL) -I $(OPENBUSNEWIDL) -o $@ $(OLDIDL)
130 131

openbuslua.c: $(PRELOAD_DIR)/luaopenbus.c