Commit 48ce6b02 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: add spll_dbg_proxy to build procedure

parent af2cf2e3
wrsw_hal/wrsw_hal
wrsw_rtud/wrsw_rtud
spll_dbg_proxy/spll_dbg_proxy
......@@ -13,8 +13,8 @@ WR_INSTALL_ROOT ?= $(WRS_OUTPUT_DIR)/images/wr
WRDEV_DIR ?= $(WRS_BASE_DIR)/..
# subdirectories we want to compile
SUBDIRS = libswitchhw wrsw_hal wrsw_rtud
# SUBDIRS += spll_dbg_proxy wrsw_rtud wr_mon rtu_stat
SUBDIRS = libswitchhw wrsw_hal wrsw_rtud spll_dbg_proxy
# SUBDIRS += wrsw_rtud wr_mon rtu_stat
# all variables are exported
export
......
......@@ -6,25 +6,29 @@ OBJS = spll_dbg_proxy.o
BINARY = spll_dbg_proxy
# We must include stuff from wr_ipc, which is installed.
# If this is build under build scripts, it's $WRS_OUTPUT_DIR/images/wr
# If this is built under build scripts, it's $WRS_OUTPUT_DIR/images/wr
WR_INSTALL_ROOT ?= /usr/lib/white-rabbit
WR_INCLUDE = $(WR_INSTALL_ROOT)/include
WR_LIB = $(WR_INSTALL_ROOT)/lib
CFLAGS = -g -Wall -DDEBUG \
-I. -I../../../ptp-noposix-v3/libwripc -I../include -I../3rdparty/include -I$(WR_INCLUDE)
CFLAGS = -g -Wall -DDEBUG -I../include -I$(WR_INCLUDE)
LDFLAGS = -L$(WR_INSTALL_ROOT)/lib -L../3rdparty/lib -L$(WR_LIB) \
-L../../../ptp-noposix-v3 -L../libswitchhw \
-lwripc -llua -lm -ldl -lswitchhw
LDFLAGS = -L$(WR_LIB) -L../libswitchhw -llua -lm -ldl -lswitchhw
all: $(BINARY)
$(BINARY): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f $(BINARY) $(OBJS)
install:
install -d $(WR_INSTALL_ROOT)/bin
install $(BINARY) $(WR_INSTALL_ROOT)/bin
# deprecated: internal stuff.
scp: all
scp $(BINARY) root@pts-test03:/tftpboot/192.168.1.2/root
scp $(BINARY) root@pts-test03:/tftpboot/192.168.1.2/root
clean:
rm -f $(BINARY) $(OBJS)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment