busconsole.mak 1.1 KB
Newer Older
1 2 3 4 5 6
PROJNAME= busconsole
APPNAME= $(PROJNAME)

OPENBUSINC= ${OPENBUS_HOME}/include
OPENBUSLIB= ${OPENBUS_HOME}/lib

7 8 9 10 11
ifdef USE_LUA52
	SRC= console.c
else
	SRC= consoleLua51.c
endif
12

13
LIBS:= lce luuid lfs luavararg luastruct  luasocket loop luatuple \
14
  luacoroutine luacothread luainspector luaidl oil luascs luaopenbus
15

16
INCLUDES+= . $(SRCLUADIR) \
17 18 19 20 21 22 23 24 25 26
  $(OPENBUSINC)/luuid \
  $(OPENBUSINC)/lce \
  $(OPENBUSINC)/luafilesystem \
  $(OPENBUSINC)/luavararg \
  $(OPENBUSINC)/luastruct \
  $(OPENBUSINC)/luasocket2 \
  $(OPENBUSINC)/loop \
  $(OPENBUSINC)/oil \
  $(OPENBUSINC)/scs/lua \
  $(OPENBUSINC)/openbus/lua
27 28 29
LDIR+= $(OPENBUSLIB)

ifeq "$(TEC_SYSNAME)" "Linux"
30
  LFLAGS = -Wl,-E
31 32
endif
ifeq "$(TEC_SYSNAME)" "SunOS"
33 34 35 36 37 38
  USE_CC=Yes
  CFLAGS= -g -KPIC -mt -D_REENTRANT
  ifeq ($(TEC_WORDSIZE), TEC_64)
    CFLAGS+= -m64
  endif
  LFLAGS= $(CFLAGS) -xildoff
39
endif
40 41

ifdef USE_STATIC
42 43 44 45 46 47
  SLIB:= $(foreach libname, $(LIBS) uuid crypto, $(OPENBUSLIB)/lib$(libname).a)
  ifeq "$(TEC_SYSNAME)" "SunOS"
    LIBS:= rt nsl socket resolv
  else
    LIBS:= 
  endif
48
else
49 50 51
  ifneq "$(TEC_SYSNAME)" "Darwin"
    LIBS+= uuid
  endif
52 53
endif

54
LIBS+= dl