CC=cc
CFLAGS=-I. -O7
DEPS = PortLoggerLib.h

all: PortLogger simple

clean:
	rm -f PortLogger simple *.o

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

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

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