| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
include ../Makefile.miniconfig |
| 5 |
|
| 6 |
|
| 7 |
BIN=asm_pure_loop |
| 8 |
|
| 9 |
LIB= |
| 10 |
|
| 11 |
all: $(BIN) |
| 12 |
|
| 13 |
$(BIN): $(BIN).S |
| 14 |
ifdef CORESIGHT |
| 15 |
ifeq ($(ARCH),arm64) |
| 16 |
|
| 17 |
$(Q)$(CC) $(BIN).S -nostdlib -static -o $(BIN) $(LIB) |
| 18 |
endif |
| 19 |
endif |
| 20 |
|
| 21 |
install-tests: all |
| 22 |
ifdef CORESIGHT |
| 23 |
ifeq ($(ARCH),arm64) |
| 24 |
|
| 25 |
$(call QUIET_INSTALL, tests) \ |
| 26 |
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/$(INSTDIR_SUB)/$(BIN)'; \ |
| 27 |
$(INSTALL) $(BIN) '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/$(INSTDIR_SUB)/$(BIN)/$(BIN)' |
| 28 |
endif |
| 29 |
endif |
| 30 |
|
| 31 |
clean: |
| 32 |
$(Q)$(RM) -f $(BIN) |
| 33 |
|
| 34 |
.PHONY: all clean install-tests |