# LED Status makefile created by Jeremy Garff
# List of sources, objects, and program.

SRCS	= ledcpu.c
OBJS	= ledcpu.o
PROG	= ledstatus

# List of compiling options.

COMP	= gcc
CFLAGS	= -g -Wall
LIBS	= -lm

# Linking the executable.

$(PROG): $(OBJS);
	$(COMP) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

# Compiling each module.
# Note: can be done differently.

ledcpu.o: ledcpu.c;
	$(COMP) -c $(CFLAGS) ledcpu.c

# Cleanup (removes files that can be rebuilt).

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

# DO NOT DELETE THIS LINE -- make depend depends on it.
ledcpu.o: ledcpu.c port.h
