Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/Makefile.getarch
|
kusano |
2b45e8 |
export BINARY
|
|
kusano |
2b45e8 |
export USE_OPENMP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef TARGET_CORE
|
|
kusano |
2b45e8 |
TARGET_MAKE = Makefile_kernel.conf
|
|
kusano |
2b45e8 |
TARGET_CONF = config_kernel.h
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
TARGET_MAKE = Makefile.conf
|
|
kusano |
2b45e8 |
TARGET_CONF = config.h
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
# CPUIDEMU = ../../cpuid/table.o
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef CPUIDEMU
|
|
kusano |
2b45e8 |
EXFLAGS = -DCPUIDEMU -DVENDOR=99
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
all: getarch_2nd
|
|
kusano |
2b45e8 |
./getarch_2nd 0 >> $(TARGET_MAKE)
|
|
kusano |
2b45e8 |
./getarch_2nd 1 >> $(TARGET_CONF)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
config.h : c_check f_check getarch
|
|
kusano |
2b45e8 |
perl ./c_check $(TARGET_MAKE) $(TARGET_CONF) $(CC)
|
|
kusano |
2b45e8 |
perl ./f_check $(TARGET_MAKE) $(TARGET_CONF) $(FC)
|
|
kusano |
2b45e8 |
./getarch 0 >> $(TARGET_MAKE)
|
|
kusano |
2b45e8 |
./getarch 1 >> $(TARGET_CONF)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
getarch : getarch.c cpuid.S dummy $(CPUIDEMU)
|
|
kusano |
2b45e8 |
$(HOSTCC) $(CFLAGS) $(EXFLAGS) -o $(@F) getarch.c cpuid.S $(CPUIDEMU)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
getarch_2nd : getarch_2nd.c config.h dummy
|
|
kusano |
2b45e8 |
ifndef TARGET_CORE
|
|
kusano |
2b45e8 |
$(HOSTCC) -I. $(CFLAGS) -o $(@F) getarch_2nd.c
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
$(HOSTCC) -I. $(CFLAGS) -DBUILD_KERNEL -o $(@F) getarch_2nd.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dummy:
|