--- /dev/null
+---
+# $Id$
+Language: Cpp
+UseTab: Always
+TabWidth: 8
+IndentWidth: 8
+PointerAlignment: Left
+ColumnLimit: 1024
+AllowShortIfStatementsOnASingleLine: Always
+AllowShortBlocksOnASingleLine: Never
+AllowShortLoopsOnASingleLine: true
+SpaceBeforeParens: Never
+AlignEscapedNewlines: DontAlign
+SortIncludes: false
+AllowShortEnumsOnASingleLine: false
--- /dev/null
+# $Id$
+
+include $(PWD)/Platform/$(PLATFORM).mk
+
+.PHONY: all clean
+.SUFFIXES: .c .o
+
+OBJS = string.o
+
+all: common.a
+
+common.a: $(OBJS)
+ ar rcs $@ $(OBJS)
+
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f *.o *.a
--- /dev/null
+/* $Id$ */
--- /dev/null
+# $Id$
+
+PWD = `pwd`
+PLATFORM = generic
+PREFIX = /usr
+
+FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
+
+.PHONY: all format clean ./Server ./Common
+
+all: ./Server
+
+./Server:: ./Common
+ $(MAKE) -C $@ $(FLAGS)
+
+./Common::
+ $(MAKE) -C $@ $(FLAGS)
+
+format:
+ clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
+
+clean:
+ $(MAKE) -C ./Server $(FLAGS) clean
+ $(MAKE) -C ./Common $(FLAGS) clean
--- /dev/null
+# $Id$
+
+CC = cc
+AR = ar
+CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\"
+LDFLAGS =
+LIBS =
--- /dev/null
+# $Id$
+
+include $(PWD)/Platform/$(PLATFORM).mk
+
+.PHONY: all clean
+.SUFFIXES: .c .o
+
+OBJS = ../Common/common.a main.o
+
+all: tewi$(EXEC)
+
+tewi$(EXEC): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f *.o tewi *.exe
--- /dev/null
+/* $Id$ */
+
+int main() {}