mirror of
https://github.com/RRZE-HPC/ibench.git
synced 2025-07-21 12:51:10 +02:00
initial import
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
COMPILER=ICC
|
||||
|
||||
TARGET = ibench
|
||||
SRC_DIR = src
|
||||
KDIRS += $(patsubst $(SRC_DIR)/%, %, $(wildcard $(SRC_DIR)/*))
|
||||
Q = @
|
||||
|
||||
include include_$(COMPILER).mk
|
||||
|
||||
$(TARGET): ibench.c $(KDIRS) $(KERNELS)
|
||||
$(Q)echo "===> COMPILING $@"
|
||||
$(Q)$(CC) $(CFLAGS) $< -o $@ -ldl
|
||||
|
||||
$(KDIRS):
|
||||
$(Q)mkdir $(KDIRS)
|
||||
|
||||
%.so:
|
||||
$(Q)echo "===> ASSEMBLING $@"
|
||||
$(Q)$(AS) $(LFLAGS) $(patsubst %.so, $(SRC_DIR)/%.S, $@) -o $@
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
$(Q)echo "===> CLEAN"
|
||||
$(Q)rm -rf $(KDIRS)
|
||||
$(Q)rm -f $(TARGET)
|
Reference in New Issue
Block a user