2022-11-12 13:34:11 +00:00
|
|
|
#
|
2022-11-11 15:05:46 +00:00
|
|
|
# Use GNU-Make (gmake) for building
|
2022-11-12 13:34:11 +00:00
|
|
|
#
|
|
|
|
|
2022-11-11 15:05:46 +00:00
|
|
|
bin = aix-disk-perfstat
|
|
|
|
src = $(wildcard *.c)
|
|
|
|
obj = $(src:.c=.o)
|
2022-11-11 07:51:27 +00:00
|
|
|
|
2022-11-11 15:05:46 +00:00
|
|
|
CC = gcc
|
|
|
|
LDFLAGS = -lperfstat
|
2022-11-11 07:51:27 +00:00
|
|
|
|
2022-11-11 15:05:46 +00:00
|
|
|
$(bin): $(obj)
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
2022-11-11 07:51:27 +00:00
|
|
|
|
2022-11-11 15:05:46 +00:00
|
|
|
.PHONY: clean
|
2022-11-11 07:51:27 +00:00
|
|
|
clean:
|
2022-11-11 15:05:46 +00:00
|
|
|
rm -f $(obj) $(bin)
|