blob: 4d8282eb08db58c59ea5c272322b1071520bebab [file] [log] [blame]
developer70436792023-05-19 09:31:20 +08001CFLAGS = $(OPENSSL_INCS_LOCATION)
2LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto -ldl -lpthread
3
4all: main.out
5
6main.out: common.o main.o aesgcm.o aesccm.o
7 $(CC) $(CFLAGS) -o openssl-fips-ext $^ $(LDFLAGS)
8
9main.o: main.c
10 $(CC) $(CFLAGS) -c -o main.o $< $(LDFLAGS)
11aesgcm.o: aesgcm.c
12 $(CC) $(CFLAGS) -c -o aesgcm.o $< $(LDFLAGS)
13
14aesccm.o: aesccm.c
15 $(CC) $(CFLAGS) -c -o aesccm.o $< $(LDFLAGS)
16
17common.o: common.c
18 $(CC) $(CFLAGS) -c -o common.o $< $(LDFLAGS)
19
20clean:
21 $(RM) openssl-fips-ext