aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ccbcac16b45e470b699ab6cd71d088921c74f004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CC=gcc
CFLAGS=-Wall -Werror

cputemp2maxfreq: version.o debug.o sysfs.o cpufreq.o failsafe.o argparse.o logger.o cputemp.o cpulist.o

version.h: generate_version_h.sh .git/index
	./generate_version_h.sh > version.h

%.o: %.c %.h debug.h
	$(COMPILE.c) $(OUTPUT_OPTION) $<

debug.h: generate_debug_h.sh debug.c
	./generate_debug_h.sh > debug.h.new
	mv debug.h.new debug.h