From f53b189d6c2e86c4daf85a181819f5cc721be809 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Mon, 9 Nov 2015 19:49:35 +0100 Subject: [PATCH] Add skeleton for encrypt program. --- Encrypt.c | 14 ++++++++++++++ Makefile | 8 ++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Encrypt.c diff --git a/Encrypt.c b/Encrypt.c new file mode 100644 index 0000000..5414cfa --- /dev/null +++ b/Encrypt.c @@ -0,0 +1,14 @@ +#include "Buffer.h" +#include "Common.h" + +#include + +int main( int argc, const char *argv[] ) +{ + if (argc != 3) { + fprintf( stderr, "Call %s \n", argv[0] ); + return 1; + } + + return 0; +} diff --git a/Makefile b/Makefile index 57fa380..738a411 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,14 @@ -all: Decrypt +all: Decrypt Encrypt Decrypt: Decrypt.o Buffer.o - clang -o $@ Decrypt.o Buffer.o + clang -o $@ $^ + +Encrypt: Encrypt.o Buffer.o + clang -o $@ $^ Decrypt.o: Decrypt.c Buffer.h Common.h Buffer.o: Buffer.c Buffer.h +Encrypt.o: Encrypt.c Buffer.h Common.h .c.o: clang -c -o $@ $<