diff options
author | Franklin Wei <me@fwei.tk> | 2018-06-30 20:01:43 -0400 |
---|---|---|
committer | Franklin Wei <me@fwei.tk> | 2018-06-30 20:01:43 -0400 |
commit | f0519032a59aff4ca9edcb2916e094db93e08942 (patch) | |
tree | 2888deb8615fb03f30bab36773a9605a0546160d /Makefile | |
parent | 03a354b8d0f2a8820db9571c639804648d804ac4 (diff) | |
download | csaa-f0519032a59aff4ca9edcb2916e094db93e08942.zip csaa-f0519032a59aff4ca9edcb2916e094db93e08942.tar.gz csaa-f0519032a59aff4ca9edcb2916e094db93e08942.tar.bz2 csaa-f0519032a59aff4ca9edcb2916e094db93e08942.tar.xz |
Add dummy client/server for comparison; fix bugs and polish database code
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -1,9 +1,19 @@ -all: client server Makefile -CFLAGS = -g -Wall -O3 -lsqlite3 +all: client server dummy_client dummy_server +CFLAGS = -g -Wall -O0 -lsqlite3 +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 +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 + rm -f *.o a.out client server dummy_client dummy_server |