aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 38359d2b6a27215f14d232462436a655bec6401f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: client server dummy_client dummy_server
CFLAGS = -g -Wall -Wformat-overflow=0 -O3 -lsqlite3 -ftrapv

sqlinit.c: sqlinit.txt
	xxd -i $^ | sed 's/\([0-9a-f]\)$$/\0, 0x00/' > $@

dummy_main.o: main.c
	cc -c -o $@ $^ -DDUMMY $(CFLAGS)

dummy_client: dummy_client.o crypto.o test.o iomt.o
	cc -o $@ $^ -lcrypto $(CFLAGS)
dummy_server: dummy_service.o dummy_main.o sqlinit.o
	cc -o $@ $^ -lcrypto $(CFLAGS)
client: client.o crypto.o test.o iomt.o
	cc -o $@ $^ -lcrypto $(CFLAGS)
server: service_provider.o crypto.o helper.o trusted_module.o main.o test.o iomt.o sqlinit.o
	cc -o $@ $^ -lcrypto $(CFLAGS)
clean:
	rm -f *.o a.out client server dummy_client dummy_server