]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | CFLAGS += -I ../../include |
2 | libs += ../../bin/isa-l_crypto.a | |
3 | tests = $(patsubst %test.c, %test, $(wildcard *_test.c)) | |
4 | ||
5 | tests: $(tests) | |
6 | $(tests): $(libs) | |
7 | %test: %test.c | |
8 | $(CC) $< $(libs) $(CFLAGS) $(LDLIBS) -o $@ | |
9 | $(libs): | |
10 | $(MAKE) -C ../../ -f Makefile.unx | |
11 | test: $(addsuffix .run,$(tests)) | |
12 | @echo ALL PASS | |
13 | $(addsuffix .run,$(tests)): %.run: % | |
14 | $(SIM) ./$< | |
15 | @echo Completed run: $< | |
16 | clean: | |
17 | $(RM) *.o $(tests) | |
18 | ||
19 | $(tests): LDLIBS += -lcrypto |