busconsole.mak 910 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
PROJNAME= busconsole
APPNAME= $(PROJNAME)

USE_LUA51= YES

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

SRC= console.c

LIBS= \
12 13 14
  dl crypto \
  lua5.1 luuid lce lfs luavararg luastruct luasocket \
  loop luatuple 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)

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