perflab added
This commit is contained in:
23
profile/Makefile
Normal file
23
profile/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Makefile for word frequency analysis program
|
||||
|
||||
CC = icx
|
||||
CFLAGS = -Ofast -pg
|
||||
TARGET = prog
|
||||
SOURCES = prog.c options.c
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(SOURCES)
|
||||
$(CC) $(CFLAGS) $(SOURCES) -o $(TARGET)
|
||||
|
||||
run: $(TARGET)
|
||||
./$(TARGET) -file shakespeare.txt
|
||||
|
||||
profile: $(TARGET)
|
||||
./$(TARGET) -file shakespeare.txt
|
||||
gprof $(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) gmon.out
|
||||
|
||||
.PHONY: all run profile clean
|
||||
Reference in New Issue
Block a user