From fc91136080140daf6fad6a7213d90c4cc9181aa2 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 21 Mar 2014 13:55:39 +0100 Subject: Add some skeleton. --- src/.erlang | 5 +++++ src/Makefile | 8 ++++++++ src/Makefile.inc | 6 ++++++ src/catlfish | 5 +++++ src/catlfish.erl | 6 ++++++ src/https/Makefile | 5 +++++ src/https/https_server.erl | 5 +++++ 7 files changed, 40 insertions(+) create mode 100644 src/.erlang create mode 100644 src/Makefile create mode 100644 src/Makefile.inc create mode 100755 src/catlfish create mode 100644 src/catlfish.erl create mode 100644 src/https/Makefile create mode 100644 src/https/https_server.erl (limited to 'src') diff --git a/src/.erlang b/src/.erlang new file mode 100644 index 0000000..406b099 --- /dev/null +++ b/src/.erlang @@ -0,0 +1,5 @@ +%% Erlang init file for catlfish (in Emacs -*- erlang -*- mode) +%%io:format("Inititaing for catlfish~n"). +code:add_pathz("https"). +code:add_pathz("merkletree"). +code:add_pathz("x509"). diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..0b77c52 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,8 @@ +MODULES = catlfish + +all: subdirs $(MODULES:%=%.beam) + +subdirs: + $(MAKE) -C https + +include Makefile.inc diff --git a/src/Makefile.inc b/src/Makefile.inc new file mode 100644 index 0000000..928b06a --- /dev/null +++ b/src/Makefile.inc @@ -0,0 +1,6 @@ +# -*- makefile -*- + +.erl.beam: + erlc -W $< + +.SUFFIXES: .erl .beam diff --git a/src/catlfish b/src/catlfish new file mode 100755 index 0000000..72102d5 --- /dev/null +++ b/src/catlfish @@ -0,0 +1,5 @@ +#! /usr/bin/env escript + +main(_) -> + io:format("Hello catlfish!\n"), + catlfish:start(). diff --git a/src/catlfish.erl b/src/catlfish.erl new file mode 100644 index 0000000..cfdec8b --- /dev/null +++ b/src/catlfish.erl @@ -0,0 +1,6 @@ +-module('catlfish'). +-export([start/0]). + +start() -> + io:format("Starting catlfish~n"), + https_server:start(). diff --git a/src/https/Makefile b/src/https/Makefile new file mode 100644 index 0000000..ac3b57b --- /dev/null +++ b/src/https/Makefile @@ -0,0 +1,5 @@ +MODULES = https_server + +all: $(MODULES:%=%.beam) + +include ../Makefile.inc diff --git a/src/https/https_server.erl b/src/https/https_server.erl new file mode 100644 index 0000000..a62a02f --- /dev/null +++ b/src/https/https_server.erl @@ -0,0 +1,5 @@ +-module(https_server). +-export([start/0]). + +start() -> + io:format("Starting https server~n"). -- cgit v1.1