CC=gcc
CC_FLAGS=-c -Wall -Werror
CC_LIBS=
INCLUDES=

SOURCES=main.c printx.c
OBJECTS=$(SOURCES:.c=.o)
OUTPUT=tweekd

all: $(SOURCES) $(OUTPUT)

$(OUTPUT): $(OBJECTS)
	$(CC) $(OBJECTS) $(CC_LIBS) -o $@

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

clear:
	rm -f $(OUTPUT) $(OBJECTS)