-RUN echo "E2AP ?" >> /manifests/versions.txt
-RUN echo "E2SM-gNB-NRT ?" >> /manifests/versions.txt
-RUN echo "E2SM-gNB-X2 ?" >> /manifests/versions.txt
+RUN cd 3rdparty/E2SM-gNB-NRT_V4.0.1 && \
+ gcc -c ${CFLAGS} -I. -g -fPIC *.c && \
+ gcc *.o -g -shared -o libgnbnrt.so && \
+ cp libgnbnrt.so /usr/local/lib/ && \
+ cp *.h /usr/local/include/ && \
+ ldconfig
+
+RUN cd 3rdparty/E2SM-gNB-X2-V4.0.1 && \
+ gcc -c ${CFLAGS} -I. -g -fPIC *.c && \
+ gcc *.o -g -shared -o libgnbx2.so && \
+ cp libgnbx2.so /usr/local/lib/ && \
+ cp *.h /usr/local/include/ && \
+ ldconfig
+
+RUN echo "E2AP E2AP-v01.00.00" >> /manifests/versions.txt
+RUN echo "E2SM-gNB-NRT E2SM-gNB-NRT_V4.0.1" >> /manifests/versions.txt
+RUN echo "E2SM-gNB-X2 E2SM-gNB-X2-V4.0.1" >> /manifests/versions.txt