Add skeleton for encrypt program.

This commit is contained in:
Sven Weidauer 2015-11-09 19:49:35 +01:00
parent 5fe3edb6d2
commit f53b189d6c
2 changed files with 20 additions and 2 deletions

14
Encrypt.c Normal file
View file

@ -0,0 +1,14 @@
#include "Buffer.h"
#include "Common.h"
#include <stdio.h>
int main( int argc, const char *argv[] )
{
if (argc != 3) {
fprintf( stderr, "Call %s <input> <output>\n", argv[0] );
return 1;
}
return 0;
}

View file

@ -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 $@ $<