Add skeleton for encrypt program.
This commit is contained in:
parent
5fe3edb6d2
commit
f53b189d6c
2 changed files with 20 additions and 2 deletions
14
Encrypt.c
Normal file
14
Encrypt.c
Normal 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;
|
||||||
|
}
|
8
Makefile
8
Makefile
|
@ -1,10 +1,14 @@
|
||||||
all: Decrypt
|
all: Decrypt Encrypt
|
||||||
|
|
||||||
Decrypt: Decrypt.o Buffer.o
|
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
|
Decrypt.o: Decrypt.c Buffer.h Common.h
|
||||||
Buffer.o: Buffer.c Buffer.h
|
Buffer.o: Buffer.c Buffer.h
|
||||||
|
Encrypt.o: Encrypt.c Buffer.h Common.h
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
clang -c -o $@ $<
|
clang -c -o $@ $<
|
||||||
|
|
Loading…
Add table
Reference in a new issue