CC=gcc
CFLAGS=-g -Os -Wall -DTEST

OBJS=autothrottle.o cpu.o acpi.o config.o msg.o
PRGS=autothrottle

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

all: autothrottle
	
autothrottle:	$(OBJS) 
	$(CC) -o $@ $(OBJS)

clean:
	rm -f $(OBJS) $(PRGS)

autothrottle.o: autothrottle.c autothrottle.h acpi.h cpu.h msg.h config.h
cpu.o: cpu.c cpu.h config.h msg.h
acpi.o: acpi.c acpi.h config.h msg.h
config.o: config.c config.h acpi.h msg.h
msg.o: msg.c msg.h config.h
