CC      = gcc
CFLAGS  = -c -g

all: main

main: datei.o error.o kongress.o main.o print.o
	$(CC) -o main datei.o error.o kongress.o main.o print.o

datei.o: datei.h datei.c entities.h
	$(CC) $(CFLAGS) datei.c

error.o: error.h error.c
	$(CC) $(CFLAGS) error.c

kongress.o: datei.h entities.h error.h kongress.h kongress.c relations.h
	$(CC) $(CFLAGS) kongress.c

main.o: datei.h entities.h main.h main.c kongress.h relations.h
	$(CC) $(CFLAGS) main.c

print.o: entities.h kongress.h print.c print.h relations.h
	$(CC) $(CFLAGS) print.c
