SRCS =  smux.cpp \
        sensors.cpp \
+       tables.cpp \
        handlers.cpp \
        utils.cpp \
        types.cpp
 
-STGLIBS = -lstgcommon -lstgsmux
+STGLIBS = common \
+         smux \
+         logger \
+         scriptexecuter
 
-CXXFLAGS += -Iasn1
+CFLAGS += -I ../../../../../stglibs/smux.lib/include/stg
+CXXFLAGS += -I ../../../../../stglibs/smux.lib/include/stg
 
 include ../../Makefile.in
-
-.PHONY: asn1
-
-asn1:
-       $(MAKE) -C asn1 asn1