summaryrefslogtreecommitdiff
path: root/i/simulotron/src
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src')
-rw-r--r--i/simulotron/src/Makefile.am9
-rw-r--r--i/simulotron/src/socket/Makefile.am8
-rw-r--r--i/simulotron/src/socket/test_socket.cc5
-rw-r--r--i/simulotron/src/utils/Makefile.am5
-rw-r--r--i/simulotron/src/utils/test_errno_exception.cc5
5 files changed, 30 insertions, 2 deletions
diff --git a/i/simulotron/src/Makefile.am b/i/simulotron/src/Makefile.am
index 7302a68..3a767e2 100644
--- a/i/simulotron/src/Makefile.am
+++ b/i/simulotron/src/Makefile.am
@@ -1,9 +1,14 @@
+SUBDIRS = utils socket
+
bin_PROGRAMS = simulotron
simulotron_SOURCES = main.cc \
- socket/socket.cc socket/socket.hh \
- socket/address.cc socket/address.hh \
+ socket/address.hh socket/address.cc \
+ socket/socket.cc socket/socket.hh \
utils/errno_exception.hh
simulotron_CXXFLAGS = -g -Wall -fmessage-length=0
simulotron_LDADD =
INCLUDES = -I../../src
+
+TESTS = socket/test_socket \
+ utils/test_errno_exception
diff --git a/i/simulotron/src/socket/Makefile.am b/i/simulotron/src/socket/Makefile.am
new file mode 100644
index 0000000..f4ff19b
--- /dev/null
+++ b/i/simulotron/src/socket/Makefile.am
@@ -0,0 +1,8 @@
+check_PROGRAMS = test_socket
+test_socket_SOURCES = test_socket.cc \
+ socket.cc socket.hh \
+ address.cc address.hh \
+ ../utils/errno_exception.hh
+
+AM_CXXFLAGS=-g -W -Wall -fmessage-length=0
+INCLUDES= -I../../src
diff --git a/i/simulotron/src/socket/test_socket.cc b/i/simulotron/src/socket/test_socket.cc
new file mode 100644
index 0000000..2992206
--- /dev/null
+++ b/i/simulotron/src/socket/test_socket.cc
@@ -0,0 +1,5 @@
+
+int main(void)
+{
+ return 0;
+}
diff --git a/i/simulotron/src/utils/Makefile.am b/i/simulotron/src/utils/Makefile.am
new file mode 100644
index 0000000..6bd6053
--- /dev/null
+++ b/i/simulotron/src/utils/Makefile.am
@@ -0,0 +1,5 @@
+check_PROGRAMS = test_errno_exception
+test_errno_exception_SOURCES = errno_exception.hh test_errno_exception.cc
+
+AM_CXXFLAGS=-g -W -Wall -fmessage-length=0
+INCLUDES= -I../../src
diff --git a/i/simulotron/src/utils/test_errno_exception.cc b/i/simulotron/src/utils/test_errno_exception.cc
new file mode 100644
index 0000000..2992206
--- /dev/null
+++ b/i/simulotron/src/utils/test_errno_exception.cc
@@ -0,0 +1,5 @@
+
+int main(void)
+{
+ return 0;
+}