mirror of https://github.com/skeeto/enchive.git
Move sources under src/.
parent
b1856fb9eb
commit
72544c4301
12
Makefile
12
Makefile
|
@ -3,16 +3,16 @@
|
|||
CC = cc
|
||||
CFLAGS = -ansi -pedantic -Wall -Wextra -O3 -g3
|
||||
|
||||
sources = enchive.c chacha.c curve25519-donna.c sha256.c
|
||||
sources = src/enchive.c src/chacha.c src/curve25519-donna.c src/sha256.c
|
||||
objects = $(sources:.c=.o)
|
||||
headers = config.h docs.h chacha.h sha256.h optparse.h
|
||||
headers = config.h src/docs.h src/chacha.h src/sha256.h src/optparse.h
|
||||
|
||||
enchive: $(objects)
|
||||
$(CC) $(LDFLAGS) -o $@ $(objects) $(LDLIBS)
|
||||
enchive.o: enchive.c config.h docs.h
|
||||
chacha.o: chacha.c config.h
|
||||
curve25519-donna.o: curve25519-donna.c config.h
|
||||
sha256.o: sha256.c config.h
|
||||
src/enchive.o: src/enchive.c config.h src/docs.h
|
||||
src/chacha.o: src/chacha.c config.h
|
||||
src/curve25519-donna.o: src/curve25519-donna.c config.h
|
||||
src/sha256.o: src/sha256.c config.h
|
||||
|
||||
enchive-cli.c: $(sources) $(headers)
|
||||
cat $(headers) $(sources) | sed -r 's@^(#include +".+)@/* \1 */@g' > $@
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef CHACHA_H
|
||||
#define CHACHA_H
|
||||
|
||||
#include "config.h"
|
||||
#include "../config.h"
|
||||
|
||||
#define CHACHA_BLOCKLENGTH 64
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
* from the sample implementation. */
|
||||
|
||||
#include <string.h>
|
||||
#include "config.h"
|
||||
#include "../config.h"
|
||||
|
||||
/* Field element representation:
|
||||
*
|
|
@ -1,4 +1,4 @@
|
|||
#include "config.h"
|
||||
#include "../config.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
|
@ -10,7 +10,7 @@
|
|||
#define SHA256_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include "config.h"
|
||||
#include "../config.h"
|
||||
|
||||
#define SHA256_BLOCK_SIZE 32
|
||||
|
Loading…
Reference in New Issue