Commit d7ca18f4 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Merge branch 'master' of ssh://vo20.nl/home/git/repos/uva

parents bcae32ba 25ed9b69
PROG = philosophers PROG = ass4
CC = gcc CC = gcc
CFLAGS = -ansi -Wall -Wextra -O3 -pthread CFLAGS = -std=c99 -pedantic -Wall -Wextra -D_GNU_SOURCE # -D_POSIX_SOURCE
OFILES = host.o LFLAGS = -lpthread
OFILES = main.o
RM = rm -f RM = rm -f
ifdef DEBUG
CFLAGS +=-ggdb
else
CFLAGS +=-O3
endif
$(PROG): $(OFILES) $(PROG): $(OFILES)
$(CC) -o $(PROG) $(OFILES) $(CFLAGS) $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OFILES)
%.o: %.c %.o: %.c
$(CC) -c $< $(CFLAGS) $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
$(RM) *.o $(PROG) $(RM) $(OFILES) $(PROG)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment