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