Milan Stephan
Fotografie & IT
MAKEFLAGS += --no-builtin-rules

CC=gcc
CFLAGS=-std=c11 -pedantic -Wall -Werror -D_XOPEN_SOURCE=700 -c -g
LD=gcc
LDFLAGS=

.PHONY: all clean

all: passive dup2 printer

clean:
	rm -f passive passive.o dup2 dup2.o printer printer.o

passive: passive.o
passive.o: passive.c

dup2: dup2.o
dup2.o: dup2.c

printer: printer.o
printer.o: printer.c



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